From Mexico.purplecow.org

Jump to: navigation, search

A recurring question that pops up - how to process text files line-by-line in shell.

#!/bin/bash

while read moo
do
echo $moo
done <content.txt