From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit 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-05 17:20:31 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newshub2.rdc1.sfba.home.com!news.home.com!enews.sgi.com!news.xtra.co.nz!not-for-mail From: "AG" Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> Subject: Re: historical evidence of what went wrong at DEC X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Sun, 6 Jan 2002 14:23:10 +1300 NNTP-Posting-Host: 210.55.179.62 X-Complaints-To: newsadmin@xtra.co.nz X-Trace: news.xtra.co.nz 1010280011 210.55.179.62 (Sun, 06 Jan 2002 14:20:11 NZDT) NNTP-Posting-Date: Sun, 06 Jan 2002 14:20:11 NZDT Organization: Xtra Xref: archiver1.google.com comp.os.vms:58568 alt.sys.pdp10:9148 comp.sys.dec:11054 "Peter da Silva" wrote in message news:a12sqc$107o$1@citadel.in.taronga.com... > > So how often have you needed to rename ALL your ".somethingelse" files > to ".c"? Ever? When was the last time that you needed to rename a whole > directory of files and the translation was as simple as one extension to > another? Well, except for the ".c" bit, several times a day, the last time being this last Friday, see below ... > > This specific example is very popular with VMS users, but in practice > when have you ever needed to do this on UNIX? I don't think I've ever > got a reasonable response to this question. > Here is a try, let's see if it's reasonable: Suppose you are developing a program that must read and process a whole lot of files from a Unix directory which are called *.something_or_other where the "*" is any valid file name. After processing a file, it must rename it to something like *.archive (this is a cast-iron spec requirement, non-negotiable). So far so good, but ... The program is still under development/debugging/tuning so you would like to be able to re-run it as often as needed with the same set of input files. But remember? Some (or all) of them have been renamed by the previous run... The most natural and obvious option would seem to be to just do some sort of: "rename *.archive *.something_or_other" and off you go (you could even put that thing on a hot-key somewhere perhaps). Of course, I know there are work-arounds (and I use some), but those work-arounds are simply trying to implement that semantics in a bit of a roundabout way. For example, the need to write a (even small) script means that the functionality *is* needed but *is* lacking ... Best regards, AG [BTW, I don't claim a lot of expertise with Unixes, so perhaps there are better solutions than writing a shell script (or using backup/restore;)) but the question was when/why/how often you need this. Hope this is a "reasonable" example...]