Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Reading line by line



Hi,

 how can I read line by line from a file of text?

 I tried

 while theline in `cat results.txt`
 do
     echo ${theline}
     echo "----------------"
 done

 and got a new echo on every _blank_ seperated word and 
 not a every new line seperated by a newline.

 Thank you very much for any help in advance!
 Keep zshing!
 mcc



-- 
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.



Messages sorted by: Reverse Date, Date, Thread, Author