There are hundreds of .html files in a directory. I need to delete files that don't contain word bluecar in their contents.I thought sed with rm would do that, but I don't know how to combine them.
Delete files if contents do not match pattern
files;sed;rm
This should work using grep:grep -L bluecar *.html | xargs rm