itadmin01
Wednesday, July 3, 2013
Bash "while" loop
1) Either:
while read line
do
...
done < my_file.txt
2) Or:
cat my_file.txt | while read LINE
do
...
done
http://www.tldp.org/LDP/abs/html/internal.html#READPIPEREF
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment