Another post to help my memory: Reading a file line by line and doing something with each line. This link has some great examples – Here’s my favorite because so simple one. It’s easy to craft it into one line of code, too. Takes your file to be processed as first parameter (“$1”).
How to Read a File Line By Line in Bash Here is more human readable syntax for you:
while IFS= read -r line
done < “$input”