lowercasing file names

Joseph C. Lininger jbahm at pcdesk.net
Mon Jun 14 07:13:43 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Very bad things. No seriously, it will overwrite the old file. If you didn't 
want it to do that, you'd have to check to ensure the file didn't already 
exist before performing the mv operation. For my particular purposes, I 
didn't have to think of that because I knew that wouldn't be the case.
- ---
Joseph C. Lininger
jbahm at pcdesk.net
note, the following is used for automated processing. Please leave in tact 
if quoting me in a reply.
Verification: 5eab38a77ac40416e075be8f50607ff7
- ----- Original Message ----- 
From: "Chuck Hallenbeck" <chuckh at sent.com>
To: "Speakup is a screen review system for Linux." <speakup at braille.uwo.ca>
Sent: Monday, June 14, 2004 4:02 AM
Subject: Re: lowercasing file names


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Just curious: what happens if there are collisions? i.e., if the
> lower cased name already exists?
>
>
> On Sun, 13 Jun 2004, Joseph C. Lininger wrote:
>
>>
>> Ya I tried that, and it works fine unless the directory name has a space 
>> in
>> it. I can even make it work for file names if not for that.
>> ---
>> Joseph C. Lininger
>> jbahm at pcdesk.net
>> note, the following is used for automated processing. Please leave in 
>> tact
>> if quoting me in a reply.
>> Verification: 5eab38a77ac40416e075be8f50607ff7
>> ----- Original Message -----
>> From: "Luke Yelavich" <themuso at themuso.com>
>> To: "Speakup is a screen review system for Linux." 
>> <speakup at braille.uwo.ca>
>> Cc: "Speakup List" <speakup at braille.uwo.ca>
>> Sent: Sunday, June 13, 2004 7:17 PM
>> Subject: Re: lowercasing file names
>>
>>
>> > At 10:54 AM 14/06/2004, Joseph C. Lininger wrote:
>> >>Hi all,
>> >>I've got a directory structure which contains some uppercase characters 
>> >>in
>> >>the file names. I would like to lowercase every character in the name.
>> >>Does anyone know of a quick and easy way to do this? I could write a
>> >>little program to walk through the directory structure and take care of
>> >>it, but I'd rather not go to the trouble if there is already something 
>> >>out
>> >>there that can do it.
>> >
>> > I had a few bash scripts written for this purpose, but have since 
>> > either
>> > lost them or deleted them.
>> >
>> > I guess you could try something like the following, this is for
>> > directories only.
>> >
>> > # for dir in `find ./ -type d`; do mv "$dir" `echo "$dir" | tr '[A-Z]'
>> > '[a-z]'`; done
>> >
>> > hth
>> >
>> > Luke
>> >
>> >
>> > _______________________________________________
>> > Speakup mailing list
>> > Speakup at braille.uwo.ca
>> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>> >
>>
>>
>> _______________________________________________
>> Speakup mailing list
>> Speakup at braille.uwo.ca
>> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>> ------------ Output from gpg ------------
>> gpg: Signature made Sun Jun 13 23:33:10 2004 EDT using DSA key ID 
>> 49AA3DB0
>> gpg: BAD signature from "Joseph C. Lininger <jbahm at pcdesk.net>"
>>
>>
>
> - -- 
> The Moon is Waning Crescent (10% of Full)
> My home page is now at http://www.mhcable.com/~chuckh
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
>
> iQCVAwUBQM130TVdG8M9x9tGAQKjdgQAtDUrkgXphTqU5A18uJ0WLKDHrzFZ6CLh
> foTG5vgdWodE/ZtvHTBr6Bg5M//Rtdqk+hALKT9sM1siJv4fKCLV9vjZZgMJWaM2
> prK2504q9pMQpqrKADRkyPYrumlcEb3S8zohsShx/5ylgjhBPETCEUjx6jNrqLg2
> 96qv9pRDl8I=
> =5pPn
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQM2IZCenap9Jqj2wEQIOVgCfbjFHSzSm/PRF9etrl4vQ082ztj0AoKsY
p2NX9QPYctoq2rmqGYNpxDYt
=A55o
-----END PGP SIGNATURE-----





More information about the Speakup mailing list