Here ya go:
rickdman # cat `which lowerall`
#!/bin/sh
for i in $*
do
mv $i `echo $i | tr [A-Z] [a-z]`
echo "Moving $i to `echo $i | tr [A-Z] [a-z]`"
done
And for converting to UpperCase:
rickdman # cat `which upperall`
#!/bin/sh
for i in $*
do
mv $i `echo $i | tr [a-z] [A-Z]`
echo "Moving $i to `echo $i | tr [a-z] [A-Z]`"
done
rickdman #
Rick
On Sun, 8 Mar 1998, Larry Lade wrote:
> Is there a command which converts all filenames in a directory to lower
> case? I was about to write a perl script to do so, but I'm sure there's
> a standard tool to do it... one I can't seem to find or remember.
>
> -- ----------------------------------------------------------
> Larry Lade - http://www.geocities.com/Athens/Acropolis/6686
> PGP Public Key:
> http://www.geocities.com/Athens/Acropolis/6686/pubkey.txt
> Fight junk e-mail! See http://www.cauce.org to find out how.
> -------------------------------------------------------------
>
--
Rick L. Mantooth [EMAIL PROTECTED]
http://www.why.net/users/rickdman/index.html
I don't suffer from insanity, I enjoy every minute of it.
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.