[NTLUG:Discuss] Find Files NOT containting 'string'

Greg Edwards greg at nas-inet.com
Thu Nov 6 19:52:12 CST 2003


Stuart Johnston wrote:
> I need to search for files that contain one string but not another.  Can 
> anyone suggest a linux command to do this?
> 


grep string1 | grep -v string2

-- 
Greg Edwards
New Age Software, Inc. - http://www.nas-inet.com
======================================================
Galactic Outlaw        - http://goutlaw.nas-inet.com
   The ultimate cyberspace adventure!




More information about the Discuss mailing list