Search exams, classes and guides
Search...
English
Sign in
Sign in
Home
Practice
Discover
Performance
More
CompTIA Linux+ XK0-006
Automation, Orchestration, and Scripting
Card 36 of 113
36 / 113
In a bash script, the command IFS=',' read -r a b c <<< "$line" changes the field separator for the rest of the script…
Front
In a bash script, the command IFS=',' read -r a b c <<< "$line" changes the field separator for the rest of the script after the read command finishes.
Back
A variable assignment placed directly before a command applies only to that command's environment, so IFS returns to its previous value once read completes. To change IFS for the rest of the script, assign it on its own line, such as IFS=','.
Show the back
Press the card to see the back
Study this deck