ls
a aaa b
------------------
find . -type f | grep -v a | xargs rm
// In current folder, delete all files which does not contains the key word "a"
------------------
ls
a aaa
ls
a aaa b
------------------
find . -type f | grep -v a | xargs rm
// In current folder, delete all files which does not contains the key word "a"
------------------
ls
a aaa
本文标题:shell rm
本文链接:https://www.haomeiwen.com/subject/gmohuctx.html
网友评论