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;


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.17.154.171
To prevent spam please submit by clicking the kitten: