I want to write a "for"-loop in bash such like this one:
for LINE in `cat /etc/passwd`; do
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
the bash can't read the command.
How can I realise it?
Thanks in advance