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: 18.227.190.231
To prevent spam please submit by clicking the kitten: