mathz.nu Asterisk Blacklist Hobby webbhotell

2011/10/10

Find string and remove file

Filed under: Server — Mathz @ 10:37

You can use this to find a string in a file and remove the file.
find . | xargs grep -l youemail@email.com | awk '{print "rm "$1}' > doit.sh
Look in file doit.sh for errors.
Execute the file:
bash doit.sh

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress