将文件名修改为小写
2019-07-31 本文已影响0人
元初_a20d
for filename in *
do
fname=`basename $filename`
n=`echo $fname I tr A-Z a-z`
if [ "$fname" ! = "$n" ]
then
mv $fname $n
fi
done
for filename in *
do
fname=`basename $filename`
n=`echo $fname I tr A-Z a-z`
if [ "$fname" ! = "$n" ]
then
mv $fname $n
fi
done