#!/bin/sh
for fname in *;do
tmp=`echo $fname|tr [a-z] [A-Z]` #note ,tr can't act like this: tr fname [a-z] [A-Z]'因为它只从标准输入读取数据
# it must run as this'tr <fname [a-z] [A-Z]',but this will upcased the content of fname
#so,if you want rename a file list,you must redirect tr's stdin to some command's stdout
mv $fname $tmp
done
#the above code cost me lots of time!^-^