lowercasing file names
Luke Yelavich
themuso at themuso.com
Sun Jun 13 21:17:12 EDT 2004
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
More information about the Speakup
mailing list