PDA

View Full Version : using grep to find a file that does not contain a word.


Alta
Oct15-09, 02:27 PM
I have a bunch of files that I want to find the ones that do not contain a word. I think that I can use grep to do this but I am not sure. does anyone know how to do this?

MikeH
Oct25-09, 05:57 PM
Use the -v option to grep to invert the search results.

grep -v "text" *