zsh-users
 help / color / mirror / code / Atom feed
* variables set to full lines.
@ 1998-03-01  4:34 Jason Zapman II
  1998-03-01 17:35 ` Bart Schaefer
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Zapman II @ 1998-03-01  4:34 UTC (permalink / raw)
  To: zsh-users

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@poboxes.com |    immensity of the sea. -- Antoine de Saint Exupery


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-03-01 17:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-03-01  4:34 variables set to full lines Jason Zapman II
1998-03-01 17:35 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).