Home computer programming, freebsd, linux remove file which contains in linux terminal
computer programmingfreebsdlinux

remove file which contains in linux terminal

i need to remove file that contains some string but need to do it on terminal this is how to doit
find . | xargs grep -l email@domain.com | awk ‘{print “rm “$1}’ > doit.sh
vi doit.sh // check for murphy and his law
source doit.sh

find . | xargs grep -l email@domain.com | awk '{print "rm "$1}' > doit.sh
vi doit.sh // check for murphy and his law
source doit.sh

 

 

Author

Ronny

Leave a Reply