Re: Off Topic: Translating upcase filenames to lowercase filenames
On Thu, Oct 08, 1998 at 03:49:00PM -0200, Paulo Henrique Baptista de Oliveira wrote:
> Hi debian users,
> I need to translate 800 filenames from upcase to lowercase. I remember that I can do this with tr, but I don't know very well.
> Any hints?
> Have a nice day, Paulo Henrique
Try this script...I forget where I got it but....
--------------
#!/bin/sh
#
# up2lo - rename files from uppercase to lower case.
#
for i in $*
do
file=`echo $i | tr "[A-Z]" "[a-z]"`
mv $i $file
done
--------------------
--
/* -- Stephen Carpenter <sjc@delphi.com> --- <sjc@debian.org>------------ */
E-mail "Bumper Stickers":
"A FREE America or a Drug-Free America: You can't have both!"
"honk if you Love Linux"
Reply to: