When I want to do something with each line in a file I usually write
cat my_file | while read a do gzip "$a" done
The gzip is just an example it can be anything.
What I'm wondering is if there is another way to get the lines than
cat file | while read?