How to use Internal Field Separator correctly?
I am trying to set the IFS to ‘:’, but it seems to not work. Here is my code, FILE="/etc/passwd" while IFS=’:’ read -r line; do set $line echo $1 done < $FILE When I run my code, it seems to give me the entire line. I have used the set command to assign positional… Read More How to use Internal Field Separator correctly?