Bash reading a file line by line 2008-05-20 01:56pm
Here are the directions borrowed from the BashFAQ.
Code:
cat /tmp/foo.txt | while read line; do echo $line; done; |
cat /tmp/foo.txt | while read line; do echo $line; done; |