Remove files based on content
I'm trying to remove all files if they have a certain content
find /var/qmail/queue/mess/ -exec grep yahoo {} \; -print
The above find command manages to list me the files but now I want to combine that command with actually deleting those files.
But I can't seem to get the syntax right
Ta
|