From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-01-08 12:10:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!SSRL04.SLAC.STANFORD.EDU!WINSTON From: winston@SSRL.SLAC.STANFORD.EDU ("Alan Winston - SSRL Admin Cmptg Mgr") Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Tue, 08 Jan 2002 20:08:43 GMT Organization: SLAC.STANFORD.EDU Message-ID: <00A07BC5.AE04697A@SSRL04.SLAC.STANFORD.EDU> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <0wd8uIhJkzae@eisner.encompasserve.org> <3C3B3291.150B997F@aaa.com> Reply-To: winston@SSRL.SLAC.STANFORD.EDU NNTP-Posting-Host: ssrl04.slac.stanford.edu Xref: archiver1.google.com comp.os.vms:59166 alt.sys.pdp10:9292 comp.sys.dec:11217 In article , Michael Zarlenga writes: >In comp.os.vms Jan-Erik S�derholm wrote: >:> Is that true? If so how do you delete all files called something.x and >:> all files called something.c at the same time on VMS? > >: delete *.c.*,*.x.* > >I don't think that's what he was asking. > >He wants to delete the *.c files that have a corresponding *.x >file (the same "something" in both cases). If that's what he means, then you'd have to write a little DCL. (Not tested, sorry.) This'll find every *.c file, delete it, and delete the corresponding .x file if there is one. Depending on whether you care about matching the version numbers, etc, you may need to make additional changes. This constructs the .X file name and checks to see that it exists; you could also $ SET NOON and just DELETE it, which will fail harmlessly if the file isn't there, but that will produce ugly error messages unless you $ SET MESSAGE to turn it all off, and I'd rather not keep turning them off and on again. $ START: $ CFILE = F$SEARCH ("*.c;*",1) $ IF (CFILE .EQS. "") THEN EXIT ! didn't find any more $ DELETEX/NOCONFIRM 'CFILE $ ! If you want to get only the corresponding .x version for each .c $ ! version, the command below will do it; otherwise do $ ! ".X;*" and leave off the second F$PARSE $ XFILE = F$PARSE(CFILE,,,"NAME") + ".X" + F$PARSE(CFILE,,,"VERSION") $ XFILE = F$SEARCH (XFILE,2) $ IF (XFILE .EQS. "") THEN GOTO START $ DELETEX/NOCONFIRM 'XFILE $ GOTO START -- Alan =============================================================================== Alan Winston --- WINSTON@SSRL.SLAC.STANFORD.EDU Disclaimer: I speak only for myself, not SLAC or SSRL Phone: 650/926-3056 Physical mail to: SSRL -- SLAC BIN 69, PO BOX 4349, STANFORD, CA 94309-0210 ===============================================================================