Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
variables set to full lines.
- X-seq: zsh-users 1351
- From: Jason Zapman II <zapman@xxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: variables set to full lines.
- Date: 28 Feb 1998 23:34:55 -0500
I've occasionally wanted to do something like this:
for line in `cat file` ; do
echo $line >> file1
done
where $line is set to a string containing each line in the file, rather
than each word.
Is there a way to do this?
Thanks;
Jason
--
Jason Price | If you want to build a ship, don't drum up people
Theta Xi, | together to collect wood and don't assign them tasks
Beta, Alpha 449 | and work, but rather teach them to long for the endless
jprice@xxxxxxxxxxx | immensity of the sea. -- Antoine de Saint Exupery
Messages sorted by:
Reverse Date,
Date,
Thread,
Author