批量命名:参考https://www.cnblogs.com/xiangzi888/archive/2011/11/03/2234000.html
修改后面5个字母为snail
#!/bin/bash for i in `ls`; do mv -f $i `echo $i | sed 's/.....$/snail/'`; done
将当前文件夹下的所有文件的名称前加“old_”
#!/bin/bash for i in `ls`; do mv -f $i `echo "old_"$i`; done
将但当前文件夹下的所有文件名后缀清空
#!/bin/bash for i in `ls`; do mv -f $i `echo $i | sed 's/....$//'`; done
批量删除同一后缀名的文件 参考:http://www.cppblog.com/colorful/archive/2013/07/06/201565.html
find . -name '*.vbb' -type f -print -exec rm -rf {} ;