home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
2
/
2255
< prev
next >
Wrap
Text File
|
1990-12-28
|
838b
|
28 lines
Newsgroups: alt.sources
Subject: Re: Neat utility to convert uppercase filenames
Message-ID: <1990Dec11.150025.2119@mdivax1.uucp>
Date: 11 Dec 90 15:00:25 GMT
In article <2797@cirrusl.UUCP> dhesi%cirrusl@oliveb.ATC.olivetti.com (Rahul Dhesi) writes:
>I think all the programs posted so far have the bug that if you have
>files called "x" and "X", they will delete one of them. Here's mine.
>
> (shell script deleted)
Yours is similar to the one I was using, until I saw this one posted:
for file in $*
do
mv -i $file `echo $file | tr A-Z a-z`
done
The mv program typically refuses to overwrite an existing file and, having
failed, leaves the original file in place with its original name.
This is free (that's what I paid for it) and comes with a moneyback
guarantee. Your mileage may vary.
--
mitchell@mdi.com (Bill Mitchell)