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-07 04:30:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!207-172-102-83 From: jmfbahciv@aol.com Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Mon, 07 Jan 02 10:21:23 GMT Organization: UltraNet Communications, Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> X-Trace: UmFuZG9tSVZh2KbZrs0nBdRwtruyAY9Qz6eEH2L38El4MGZDHPxxSlJGGYAzImnR X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 7 Jan 2002 12:29:07 GMT X-Newsreader: News Xpress Version 1.0 Beta #4 Xref: archiver1.google.com comp.os.vms:58701 alt.sys.pdp10:9183 comp.sys.dec:11092 In article , rivie@cougar.no.domain wrote: >Robert@bonomi.invalid wrote: >> If one has a -recurring- need to mass-rename by arbitrary extension, >> then creating the following routine *once* provides the requisite >> functionality: >> >> #!/bin/csh >> >> foreach file ( *$1 ) >> mv $file `basename $file $1`$2 >> end > >Until it runs into a filename with a space in it or one that starts >with '-'. Happens to me all the time, although it seems to be much >worse on systems which are acting as file servers for Mac folks (there's >one fellow in the office who insists on making frequently used >directories sort to the top of the directory list by tossing a space on >the front of the filename). He should have his fingers duct taped to the outside of the building. Anybody who uses a non-printing character in a filename should be ...I can't think of a fate that is bad enough. > >I'm probably simply dense, but I've never found a reasonable way of >dealing with filenames that have spaces in Unix. Good. That just means that you're sane. > ..Just when I think I've >got it figured out, something will break. I've not found a quoting >scheme that works in all situations; put quotes around it or escape the >space and you're only fine until you pass it into a script which passes >it along in the manner of the above snippet. If it were my system, all files would be renamed to have only letters and numbers. And I'd have a self-limit of 6.3 field lengths. Some days, even 9 characters were too much for people who had NIH syndrome. /BAH Subtract a hundred and four for e-mail.