[olug] Unix Tip: ANOTHER RENAMING UPPER TO LOWER
Ryan O'Rourke
ryano at ch-gifts.com
Mon May 12 13:15:00 UTC 2003
On Sat, 2003-05-10 at 18:05, Unix Guru Universe wrote:
> ANOTHER RENAMING UPPER TO LOWER
>
> A shorter method for renaming
> all files in a unix directory
> from upper to lower case.
>
> ##############################
> for file in *
> do
> mv $file `echo $file | tr [:upper:] [:lower:]` 2>/dev/null
> done
> ##############################
There's a great little tool called "chcase" that install on all my Linux
boxes for this purpose.
http://www.blemished.net/chcase.html
-- Ryan
More information about the OLUG
mailing list