Remove file in dir where grep 'pattern' | wc -l < 2

前端 未结 0 1994
自闭症患者
自闭症患者 2020-12-19 23:14

How can I remove all *.txt files within a directory, where grep \'>\' | wc -l is less than 2?

Example:

file1.txt
>BB
&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题