2010年12月10日

Remove files not containing specific string

find . -type f -exec grep -L "some string" {} \; | xargs rm
-L, --files-without-match