I have this bash script:
for opt in string1 string2 string3 ... string99
do somestuff
It works, but I would like to replace the explicit listing of my strings with a file which actually contains all the strings; something like this:
strings=loadFromFile
for opt in $strings
do somestuff
How should I do this?
while IFS= read
used so often, instead ofIFS=; while read..
? and Inwhile IFS= read..
, why does IFS have no effect? – Gilles 'SO- stop being evil' Sep 20 '12 at 00:05