Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!spot!pfalstad From: pfalstad@spot.Princeton.EDU (Paul John Falstad) Newsgroups: comp.unix.shell Subject: Re: pipes within a script Message-ID: <3040@idunno.Princeton.EDU> Date: 3 Oct 90 14:48:06 GMT References: <1263@umvlsi.ecs.umass.edu> <3022@idunno.Princeton.EDU> Sender: news@idunno.Princeton.EDU Distribution: usa Organization: Princeton University, Princeton, New Jersey Lines: 26 In article <3022@idunno.Princeton.EDU> I write: >set nonomatch >echo {~/tex/,~/tax/,~/foo/}*.{aux,dvi,log,toc} | grep -v \\\* | xargs rm > >or > >set nonomatch >rm `echo { ... } | grep -v \\\*` Oops, that's not all necessary. rm {~/tex,~/tax,~/foo}/*.{aux,dvi,log,toc} Someone pointed that out to me in email. I thought csh would give a 'no match' if you did "ls *.c *.aosfdji" if it found some .c files but no .aosfdji files. If this is all the original poster wanted to do, this is much better than the sh script. I thought it was just an example. (csh programming still sucks though) Here is the address to complain to: pfalstad@phoenix.princeton.edu PLink:HYPNOS GEnie:P.FALSTAD CIS: 70016,1355 That address again, sync@thumper.princeton.edu PLink:OHS738 GEnie:OHS738 CIS: 4128 143 1234 937