lowercasing file names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 






[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]
  Powered by Linux