How to process every line in a file with a Unix/Linux shell script
By Alvin Alexander. Last updated: October 15 2017
Unix/Linux shell script FAQ: How do I write a Unix or Linux shell script where I "do something" for every line in a text file?
Solution: An easy way to process every line in a text file is to use a Unix/Linux while loop in combination with the Linux cat command, like this: