On Sun, Mar 08, 1998 at 06:07:19PM -0600, 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.
yes, it's not hard to
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]
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 -