The Internal Field Separator that is used for word splitting after expansion and to split lines into words with the read builtin command. The default value is <space><tab><newline>.
二、相关知识
1. IFS内容查看
由于IFS默认包含的字符都是非可见字符,所以需要将字符内容转换成ASCII码或者八进制等查看。
1 2 3 4
echo$IFS | od -a (Output named characters.) echo$IFS | od -b (Output octal bytes.) echo$IFS | od -c (Output C-style escaped characters.) echo$IFS | od -x (Output hexadecimal bytes.)