BashFAQ. ``` cat /tmp/foo.txt | while read line; do echo $line; done; ```...">

Bash reading a file line by line

Here are the directions borrowed from the BashFAQ.

cat /tmp/foo.txt | while read line; do echo $line; done;
Leave A Reply
All content licensed under the Creative Commons License