Submitted 16-Dec-00 by Praedor Tempus:
> Thank you.  A starting point, at any rate.  I am not wanting to change a 
> single file from uppercase to lowercase, but actually want to change all the 
> filenames in a directory from uppercase to their corresponding lowercase 
> version (a directory full of fonts - PFBs and AFMs that need to be lowercase 
> names).


for i in *[A-Z]*; do mv -v $i $( echo $i | tr 'A-Z' 'a-z' ); done


Should work for sh, bash, and zsh.

-- 
Anton Graham                            GPG ID: 0x18F78541
<[EMAIL PROTECTED]>                 RSA key available upon request
 
An optimist believes we live in the best world possible; a pessimist fears
this is true.


Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to