xiaozi 2017-03-31 19:11:32

将文件名修改为小写

for filename in *
do
	fname=`basename $filename` 
	n=`echo $fname | tr A-Z a-z`
	if [ "$fname" != "$n" ]
	then
		mv $fname $n
	fi
done

评论

Home - Wiki
Copyright © 2011-2024 iteam. Current version is 2.139.0. UTC+08:00, 2024-12-22 17:15
浙ICP备14020137号-1 $Map of visitor$