IFS默认支持 空格 tab 换行符
改变 IFS
IFS=$' '
IFS=' '
IFS=
Normally bash doesn't interpret escape sequences in string literals. So if you write
or "
" or'
', that's not a linebreak - it's the letter n (in the first case) or a backslash followed by the letter n(in the other two cases).
$'somestring' is a syntax for string literals with escape sequences. So unlike '
', $'
'actually is a linebreak.
