shell大写转小写

for lowercase in `ls|grep -i '^gl'`
do
for uppercase in `ls $lowercase|tr [A-Z] [a-z]`
do
mv $lowercase $uppercase
done
done


作者: maojinyu   发布时间: 2011-04-06