Loading

Shell命令:如果存在指定类型文件名后缀,执行重命名操作移除后缀。

如果存在制定类型文件名后缀,执行重命名操作移除后缀。

if `ls *.flv.tmp 1> /dev/null 2>&1`; then `rename .flv.tmp .flv *.flv.tmp`; fi;

参考文章:https://codeday.me/bug/20170407/9041.html

rename命令用法自行了解。

posted @ 2019-10-31 15:43  IMBennie  阅读(582)  评论(0编辑  收藏  举报