shell大写转小写
时间:2011-04-06 来源:maojinyu
for lowercase in `ls|grep -i '^gl'`
do
for uppercase in `ls $lowercase|tr [A-Z] [a-z]`
do
mv $lowercase $uppercase
done
done
do
for uppercase in `ls $lowercase|tr [A-Z] [a-z]`
do
mv $lowercase $uppercase
done
done
相关阅读 更多 +