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

评论

trang chủ - Wiki
Copyright © 2011-2024 iteam. Current version is 2.137.1. UTC+08:00, 2024-11-05 20:37
浙ICP备14020137号-1 $bản đồ khách truy cập$