the Undernet #linux channel faq
previous contents next

How can I change the case of a lot of files?

From the Tips-HOWTO:

Try the following command:

for i in * ; do \
[ -f $i ] && mv -i $i `echo $i | tr '[A-Z]' '[a-z]'`; \
done;

Note that the backslashes are not necessary if you put all three lines on one line in your shell.


previous contents next
questions, comments? email PolarWolf | (c) - 2002 undernet #linux