catsquotl wrote:
T L Andrews wrote:
If you're in bash, the following would do what you want
for i in *; do mv $i `perl -e "print lc \$i"`; done
Hello -tara, I tried your script ,but it gives the following messages after each file.
bash: perl-e print lc <filename> :command not found mv: missing file argument
Seems like you've ommited a relevant space between perl and -e argument. BTW, as far i've read this thread, the original message sais anything about a CD, that's a read-only filesystem so 'mv' command will not work, perhaps the better solution is to do simbolic links to the files in any temporal directory as follows: mkdir /usr/tmp/downcase-cd move into the CD directory in which the bad upcase named files are and then for i in *; do ln -s $i `perl -e "print lc /usr/tmp/downcase/\$i"`; done hope sintax is ok Have a good one.
As i don`t know annything about perl could you help me out please. Thanks a lot Cat
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- Francisco M. Marzoa Alonso Nuevo Mundo - Dpto. Informático ICQ#: 62850923 Henri Dunant, 19 - 28036 Madrid tfno: +34 91 343 18 40 ext. 207 España / Spain fax: +34 91 350 28 45 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/