Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Reading line by line
- X-seq: zsh-users 11377
- From: meino.cramer@xxxxxx
- To: zsh-users@xxxxxxxxxx
- Subject: Reading line by line
- Date: Wed, 11 Apr 2007 05:33:11 +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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