Archive for May, 2012

Iterate a Text File in Bash

This is how you iterate thru a text file outputting a line at a time in Bash shell scripting.


IFS=$'\n'; for i in $(cat FILE.TXT); do echo "$i"; done