On Wed, Aug 11, 2004 at 09:22:04AM EST, Voytek Eymont wrote:
> how can I lowercase:
> 
> all file names ?
> all directory names ?
> recursively ?
> 
> I have user's web data in miXED CAse, and, I think I'd rather lower case
> it now

I have just tried this, and it worked for me, so it should work. Run these
two lines.

# for dir in `find . -type d -name "*[A-Z]*"`; do mv "$dir" `echo "$dir" | tr '[A-Z]' 
'[a-z]'`; done
# for file in `find . -type f -name "*[A-Z]*"`; do mv "$file" `echo "$file" | tr 
'[A-Z]' '[a-z]'`; done

hth

Luke

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to