getting this error
$ find . -type f | perl -lne 'rename $_,lc or warn $!'
No such file or directory at -e line 1, <> line 7.
Main Topics
Browse All TopicsWhile copying a installation CD from Windows to Solaris, the file names have become uppercase. So the installation does not work . Is there a script to convert all the files including all the directories recursively to lower case
I tried
find . -type f|while read f; do mv $f `echo $f |tr '[:upper:]' '[ :lower:]'`; done
Thanks in Advance !
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No such file or directory at -e line 1, <> line 7.
may have been due to lowercasing a directory name instead of just the file name
find . -type f| perl -F/ -alne '$"="/";$_=lc for $F[-1];rename $_,"@F" or warn "$_ @F $!"''
should correct that
find -d . | perl -F/ -alne '$"="/";$_=lc for $F[-1];rename $_,"@F" or warn "$_ -> @F $!"''
should rename directories as well as files
the problem was the image was copied from windows to unix and as a result the filenames changed from lower case to upper case
this script fixed it
this worked
for f in `find . -type d`; do
g=`expr "xxx$f" : 'xxx\(.*\)' | tr '[A-Z]' '[a-z]'`
mv "$f" "$g"
done
for f in `find . ! -type d`; do
g=`expr "xxx$f" : 'xxx\(.*\)' | tr '[A-Z]' '[a-z]'`
mv "$f" "$g"
done
Business Accounts
Answer for Membership
by: ozoPosted on 2009-06-11 at 23:34:46ID: 24609678
find . -type f| perl -lne 'rename $_,lc or warn $!'