linux shell 删除满足正则表达式的文件

 

用find配合xargs rm

find . -type f -name "to_delete_file_[a-z]_*_[0-9].jpg" | xargs rm

 

posted @ 2019-03-19 16:07  xbit  阅读(6520)  评论(0编辑  收藏  举报