If I do this:
for line in `cat file`
do
echo $line
done
I don't get a line in each iteration but a string (white space separated) - can someone tell me how to get a line in each iteration?
I know I've seen it here once before (I think it involved while ... do) but the search is still out.
Thanks, Chris
for line in `cat file`
do
echo $line
done
I don't get a line in each iteration but a string (white space separated) - can someone tell me how to get a line in each iteration?
I know I've seen it here once before (I think it involved while ... do) but the search is still out.
Thanks, Chris