From: Paul LaMadeleine (plamadeleine@LIGHTBRIDGE.COM)
Date: Thu Nov 06 2003 - 09:21:34 EST
I usually do something like this:
cat testfile | while read line
do
echo $line
done
At 02:10 PM 11/6/2003 +0000, you wrote:
>Given the following data how do I get the following script to echo each
>line, rather than each string?
>
>for line in `cat testfile`
>do
> echo $line
>done
>
>
>testfile =
>
>hhhh jjjjjjj kkkkkkkkk
>ggggg lllllll mmmmmm
>sssss kkkkk llllll
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:20 EDT