Message-Id: 81_kb2shu
From: kb2shu@kb2shu.#sca.ca.usa.noam
To: [EMAIL PROTECTED]
Someone on this list gave me this a while back, and will do what
you need:
#Here's a Unix shell script I have used for several years -- it will do the
#conversion in either direction depending upon the -u|-l flag.
# mvcase
# asw 17.10.94
# based on idea
#From: [EMAIL PROTECTED] (Max Heffler)
#Subject: Re: How to rename files with wildcard
#Organization: Texas Systems
#Date: Wed, 5 Oct 1994 01:00:16 GMT
#Max Heffler, Senior Software Design Engineer home: [EMAIL PROTECTED]
#
#! /bin/sh
#ls | while read i
#do
# mv $i `echo $i | tr '[a-z]' '[A-Z]'`
#done
if [ $2xx = xx ]
then
echo "Usage mvcase -l|u filespec"
else
case $1 in
-l)
for f in $*
do
if [ -s $f ]
then mv $f `echo $f | tr '[A-Z]' '[a-z]'`
fi
done ;;
-u)
for f in $*
do
if [ -s $f ]
then mv $f `echo $f | tr '[a-z]' '[A-Z]'`
fi
done ;;
*)
echo "Usage mvcase -l|u filespec"
esac
fi
**********************
73 for now de Paul.
kb2shu@kb2shu.#sca.ca.usa.noam
[EMAIL PROTECTED]
[EMAIL PROTECTED]
www.moonlink.net/~paul