The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 08-31-2008
Lakris Lakris is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 246
From the top of my head, I would use something like

Code:
grep -L use $(grep -L take *.txt)
which means, first (in the prenthesis) find all files that do not contain the word take, and in that list of files, find all the files that do not contain the word use.
But I'm sure there is a way to use OR in the regexp..

/Lakris