what does IFS meaning?
- The IFS stands for "internal Field separator", That is used how to do word splitting.
- IFS is a special shell variable. The used for looping in context of file.
for entry in "huu:phan linux operating,system"
echo "Values in $entry -"
for value in $entry
echo " $value"
Running bash script use IFS in context of for looping
[[email protected] Downloads]$ ./IFS_test.sh
The display as below:
Values in huu:phan linux operating,system -