LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why cann't I find IFS variable in my system (https://www.linuxquestions.org/questions/linux-newbie-8/why-cannt-i-find-ifs-variable-in-my-system-4175529872/)

quitus 01-02-2015 10:03 PM

Why cann't I find IFS variable in my system
 
Hello, I use centos 6.5 and when I echo $IFS, I see just a blank new line. I think is should not be this, yes? Thank you very much for your help.

michaelk 01-02-2015 11:14 PM

The default value is space, tab and newline so echo $IFS will not display anything.

Try the following:
printf %q "$IFS"


All times are GMT -5. The time now is 05:59 PM.