From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oldp.astro.wisc.edu ([128.104.39.15]) by hawkwind.utcs.toronto.edu with SMTP id <24198>; Wed, 30 Mar 1994 15:34:17 -0500 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA12582; Wed, 30 Mar 1994 14:33:30 -0600 Message-Id: <9403302033.AA12582@oldp.astro.wisc.edu> To: bekl@dragos.ose.enea.se (Bengt Kleberg) Subject: Re: FAQ? Cc: rc@hawkwind.utcs.toronto.edu Date: Wed, 30 Mar 1994 15:33:29 -0500 From: Alan Watson X-Mts: smtp >I need the FAQ. Where can I find it? I post it every month to comp.unix.shell and it is also available by anonymous ftp as rtfm.mit.edu:/pub/usenet/comp.unix.shell/rc-FAQ. >(if somebody also would tell me how to loop over each line in a file >that would be nice. the equiv of: for ( i in `{cat file}) >, but with file beeing very long) Use the read function in the FAQ list with a while loop or try something like: ifs = $nl for ( line in `{ cat file } ) { ... }