Example:
export IFS=$'\n'
for i in $(find .);
do
echo LEXO$i
done
It work better for me under GNU/Linux Slackware, but is reported that under GNU/Linux Ubuntu it doesn’t work and the change for it is:
Example:
export IFS=$'
' # in the second line, generating the newline
for i in $(find .);
do
echo LEXO$i
done
We can use hexadecimal too:
IFS=$’\x20′ # Space
IFS=$’\x09′ # Tab
IFS=$’\x0A’ # Line Feed
IFS=$’\x0D’ # Carriage Return
Source:
http://tldp.org/LDP/abs/html/internalvariables.html
http://wikiri.upc.es/index.php/BASH_uso_IFS
http://forum.soft32.com/linux2/Bug-409179-DASH-Settings-IFS-work-properly-ftopict70039.html
