while read line ; do # examine or do something to the text in the "line" variable echo "$line" done