打赏
Fork me on GitHub

[原]shell批量文件增删改前后缀

改后缀

for files in `ls *`; do mv ${files} ${files}.bak; done

改后缀

rename .bak .bak2 *

去除后缀

for files in `ls *`; do mv $files `echo $files |sed 's/\.bak//'`; done

 

 

posted @ 2018-08-28 13:53  my_cool2007  阅读(610)  评论(0编辑  收藏  举报