=?iso-8859-1?Q?Roland_M=FCller?=
is there a tool or command to change large numbers of file-names to lowercase? Maybe a feature in Konq? Or can anybody help me on writing a script to do that? (Or at least point me to some instructions somewhere?)
for f in *.MYFILES; do mv $f `echo $f|tr "A-Z" "a-z"`; done
where *.MYFILES should catch the files you wish to rename.
It's better to use "tr [:upper:] [:lower:]" than tr "A-Z" "a-z". There is also the problem with white characters here. I've checked the "Example 3-58. lowercase: Changes all filenames in working directory to lowercase." in "Advanced Bash-Scripting HOWTO: A guide to shell scripting, using Bash" and I'm not happy at all. Documents that are supposed to teach users are wrong. Well, it's also my fault, I haven't done anything to correct it. -- Alexandr.Malusek@imv.liu.se