🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1338

Re: pipes within a script

#1338
From: Paul John Falstad
Date: Wed, 03 Oct 1990 14:48
26 lines
1351 bytes
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
Technical Details
Message-ID: <3040@idunno.Princeton.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!sdd.hp.com!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!spot!pfalstad
References: <1263@umvlsi.ecs.umass.edu> <3022@idunno.Princeton.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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