lowercasing file names

Joseph C. Lininger jbahm at pcdesk.net
Sun Jun 13 23:33:12 EDT 2004

Hash: SHA1

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
Version: PGP 8.0.3


More information about the Speakup mailing list