Path: utzoo!utgpu!watmath!watdragon!crocus!arwillms From: arwillms@crocus.waterloo.edu (Allan Willms) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: Script to use with combine Message-ID: <12536@watdragon.waterloo.edu> Date: 21 Mar 89 07:54:06 GMT References: <12424@watdragon.waterloo.edu> Sender: daemon@watdragon.waterloo.edu Reply-To: arwillms@crocus.waterloo.edu (Allan Willms) Distribution: comp Organization: University of Waterloo, Waterloo, Ontario, CANADA Lines: 33 In article <12424@watdragon.waterloo.edu> bwwilson@lion.waterloo.edu (Bruce Wilson) writes: >Here's a little script I find very handy for grabbing stuff from >c.b.i.p. Just cut it out, put it somewhere in your path and >make it executable (chmod +x). [apply script deleted] >Here are some examples of it's use: >apply combine *.uue /* runs combine on all the .uue files */ >apply 'public arc -t' *.arc /* test all the arc files */ >apply combine 'moria*' 'dis*' /* runs combine on moria* then dis* */ This will do the same thing: -- #!/bin/csh foreach file ( ${argv[2-]} ) $1 $file end -- I usually just do it from the command line since it isn't that much to type. For example: foreach file (*.uue) combine $file end or foreach file (*.zoo) zoo v $file end etc... Of course it's using the csh.