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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-08 21:10:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!news.hawaii.edu!not-for-mail From: Jim Thomas Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 08 Jan 2002 18:54:48 -1000 Organization: Canada France Hawai`i Telescope Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <0wd8uIhJkzae@eisner.encompasserve.org> <3C3B3291.150B997F@aaa.com> <00A07BC5.AE04697A@SSRL04.SLAC.STANFORD.EDU> NNTP-Posting-Host: atlas.cfht.hawaii.edu X-Trace: news.hawaii.edu 1010552089 24808 128.171.80.135 (9 Jan 2002 04:54:49 GMT) X-Complaints-To: usenet@hawaii.edu NNTP-Posting-Date: 9 Jan 2002 04:54:49 GMT X-Newsreader: Gnus v5.7/Emacs 20.6 Xref: archiver1.google.com comp.os.vms:59283 alt.sys.pdp10:9319 comp.sys.dec:11242 >>>>> "Alan" == "Alan Winston writes: Alan> 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). Alan> If that's what he means, then you'd have to write a little DCL. (Not Alan> tested, sorry.) This'll find every *.c file, delete it, and delete the Alan> corresponding .x file if there is one. Alan> $ START: Alan> $ CFILE = F$SEARCH ("*.c;*",1) Alan> $ IF (CFILE .EQS. "") THEN EXIT ! didn't find any more Alan> $ DELETEX/NOCONFIRM 'CFILE Alan> $ ! If you want to get only the corresponding .x version for each .c Alan> $ ! version, the command below will do it; otherwise do Alan> $ ! ".X;*" and leave off the second F$PARSE Alan> $ XFILE = F$PARSE(CFILE,,,"NAME") + ".X" + F$PARSE(CFILE,,,"VERSION") Alan> $ XFILE = F$SEARCH (XFILE,2) Alan> $ IF (XFILE .EQS. "") THEN GOTO START Alan> $ DELETEX/NOCONFIRM 'XFILE Alan> $ GOTO START They way I read the spec, the two DELETEX's need to be together down at the bottom. This deletes all .c files, not only those that have a matching .x Nothead