Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 6/7/83; site hao.UUCP Path: utzoo!linus!security!genrad!grkermit!masscomp!clyde!floyd!harpo!seismo!hao!woods From: woods@hao.UUCP (Greg Woods) Newsgroups: net.unix Subject: Re: 'c' shell scripts Message-ID: <772@hao.UUCP> Date: Thu, 15-Dec-83 10:00:06 EST Article-I.D.: hao.772 Posted: Thu Dec 15 10:00:06 1983 Date-Received: Sat, 17-Dec-83 01:49:53 EST References: <4427@umcp-cs.UUCP> Organization: High Altitude Obs./NCAR, Boulder CO Lines: 25 The construct set x=`cat file` works quite well. In fact, the shell will parse newlines just like blanks. So if your file contains a list of other files, that looks like file1 file2 .... then $x expands to "file1 file2 ....". More usually, I use something like foreach f (`cat file`) .... end It should be pointed out that this does have limitations. It works fine as long as the file in question isn't too long. Otherwise you get an "Out of memory" diagnostic. Greg "C-shell hacker" Woods -- {ucbvax!hplabs | allegra!nbires | decvax!kpno | harpo!seismo | ihnp4!kpno} !hao!woods