for i in ` ls -lrt *.jpg|awk '{print $9}'`; do j=`echo $i | tr '[a-z]' '[A-Z]'`;`mv $i $j`; done
#!/bin/sh
for i in
*
do
j=`echo
$i | tr '[A-Z]' '[a-z]'`
mv $i $j
done
or in ksh:
#!/bin/ksh
typeset
-l L
for i in
* do
L=$i
mv $i $L
done
do
echo $file|tr '[a-z]' '[A-Z]'
done