hi i am a learner
can some explain "export IFS=$(echo "\n\t\a")"
i am not able to understand the functionality
please help
thanks
Satya
hi i am a learner
can some explain "export IFS=$(echo "\n\t\a")"
i am not able to understand the functionality
please help
thanks
Satya
It sets the IFS variable to newline, tab, etc.
IFS is used by the shell to "separate" words - with that setting:
echo "word1 word2 word3" | read a b c
echo "a=$a"
produces
with IFS set to default (white space) it would give