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: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-01-02 16:10:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.u.washington.edu!140.142.17.34.MISMATCH!news.u.washington.edu!Tomobiki-Cho.CAC.Washington.EDU!mrc From: Mark Crispin Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Wed, 2 Jan 2002 15:50:54 -0800 Organization: Networks & Distributed Computing Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <0ojk0a.76k1.ln@lucifer-ec0> NNTP-Posting-Host: tomobiki-cho.cac.washington.edu Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: nntp6.u.washington.edu 1010015457 93382 (None) 140.142.17.39 X-Complaints-To: help@cac.washington.edu NNTP-Posting-User: lum In-Reply-To: Xref: archiver1.google.com comp.os.vms:57921 alt.sys.pdp10:8999 comp.sys.dec:10812 On 2 Jan 2002, Bob Koehler wrote: > So how do I do the following in you favorite shell (yes, I do know > two painfull answers)? > rename *.a *.b This can be done with a small shell script, but yes, it is more complex on UNIX than it is on DOS, VMS, or TOPS-10/20. On the other hand, unlike DOS, VMS, or TOPS-10/20, there's hardly any reason to do it on UNIX. UNIX filenames are not restricted to the familiar file.extension form; the "." character is just an ordinary character in a file name. Equally important, subdirectories are much easier to use in UNIX than in VMS or TOPS-10/20. Simply put, there are other (and better) ways on UNIX to accomplish what is intended by that rename. The only people who ever ask how to do that type of rename are people who come from environments which use a strict file.extension naming and haven't yet comprehended that there are better ways to do what the underlying intention. Typically, even after they are provided with a prepackaged script to do that rename, they end up not using it since it turns out that doing things the UNIX way is so much easier. You can see the same difference with DOS vs. NT. Even though the command interface is similar and NT has the DOS/VMS/TOPS-10/TOPS-20 type of rename, people hardly ever use it since NT filenames work like UNIX. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate.