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

评论

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.139.0. UTC+08:00, 2024-12-22 14:21
浙ICP备14020137号-1 $访客地图$