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

variables set to full lines.



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