Path: utzoo!utgpu!watmath!att!tut.cis.ohio-state.edu!cica!ctrsol!ginosko!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.unix.questions Subject: Re: Bourne Shell FOR loop confusion Message-ID: <2999@solo1.cs.vu.nl> Date: 14 Aug 89 12:00:52 GMT References: <689@msa3b.UUCP> <2346@wyse.wyse.com> <8908131325.AA28606@rodan.acs.syr.edu> Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 11 jdpeek@RODAN.ACS.SYR.EDU (Jerry Peek) writes: \... while read user passwd uid junk \ do \ line=`expr $line + 1` \ echo "user${line}='$user' uid${line}='$uid'" 1>&4 \ done $defs Why use fd 4, Jerry? Stdout will do. -- "Mom! Eric Newton broke the day! In 24 |Maarten Litmaath @ VU Amsterdam: parts!" (Mike Schmitt in misc.misc) |maart@cs.vu.nl, mcvax!botter!maart