Hi,
I want to write a "for"-loop in bash such like this one:
for LINE in `cat /etc/passwd`; do
echo $LINE
done
But I get every word, and not every line. and if I set "IFS=^M" like this:
IFS=[CTRL V][ENTER] for LINE in `cat /etc/passwd`; do
echo $LINE
done
the bash can't read the command.
How can I realise it?
Thanks in advance
Markus Wenke