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 21:30:04 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: Wed, 09 Jan 2002 05:29:16 GMT Organization: SLAC.STANFORD.EDU Message-ID: <00A07C13.FD43C523@SSRL04.SLAC.STANFORD.EDU> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <0wd8uIhJkzae@eisner.encompasserve.org> <3C3B3291.150B997F@aaa.com> <00A07BC5.AE04697A@SSRL04.SLAC.STANFORD.EDU> Reply-To: winston@SSRL.SLAC.STANFORD.EDU NNTP-Posting-Host: ssrl04.slac.stanford.edu Xref: archiver1.google.com comp.os.vms:59284 alt.sys.pdp10:9320 comp.sys.dec:11243 In article , Jim Thomas writes: >>>>>> "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 > Now that you call my attention to it, we might both be wrong. The original spec is ambiguous enough to be incoherent, but if we accept Michael Zarlenga's spec, he doesn't say anything about deleting the .x files. So we might need to move the DELETEX/NOCONFIRM 'CFILE down to where the one for 'XFILE is and get rid of 'XFILE. -- 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 ===============================================================================