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

评论

Главная - Вики-сайт
Copyright © 2011-2024 iteam. Current version is 2.139.0. UTC+08:00, 2024-12-26 02:54
浙ICP备14020137号-1 $Гость$