Thread Closed

using grep to find a file that does not contain a word.

 
Share Thread Thread Tools
Oct15-09, 01:27 PM   #1
 

using grep to find a file that does not contain a word.


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?
 
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Heat-related deaths in Manhattan projected to rise
>> Dire outlook despite global warming 'pause': study
>> Sea level influenced tropical climate during the last ice age
Oct25-09, 04:57 PM   #2
 
Use the -v option to grep to invert the search results.

grep -v "text" *
 
Thread Closed
Thread Tools


Similar Threads for: using grep to find a file that does not contain a word.
Thread Forum Replies
Find peak in the historgram data file... - FORTRAN! Programming & Comp Sci 1
how can Capture Text form image file and save it as txt file or word file Computers 2
BASH: How do I grep on a variable? Programming & Comp Sci 2
Find fourier coefficients from .wav file (Matlab?) Math & Science Software 0
DOES ANYONE KNOW WERE TO FIND a list of dos bacth file commands Programming & Comp Sci 6