批量重命名 文件名

批量重命名 文件名大小变小写

for f in * ; do mv -v $f `echo $f | tr '[A-Z]' '[a-z]'`; done

or

for f in `find . -name '*.rar'` ; do mv -v $f `echo $f | tr '[A-Z]' '[a-z]'`; done

文件自定义批量重命名:

for f in `find . -name '*.rar'` ; do mv -v $f `echo $f | sed 's/a/b/g'` done;

 

Leave a Reply

Your email address will not be published. Required fields are marked *