From Mexico.purplecow.org

(Difference between revisions)
Jump to: navigation, search

Revision as of 15:53, 10 May 2009

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