The UNIX and Linux Forums  

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 -->
  #5 (permalink)  
Old 11-19-2008
rbelk rbelk is offline
Registered User
  
 

Join Date: Oct 2008
Posts: 2
Or just use grep by itself, like this
grep -ril "172.17.0.0 network" *
this will recursively check from the current directory down, ignoring case, and list the files that "172.17.0.0 network" are in.
-r = recurse down from the current directory
-i = ignore the case of the argument
-l = list the file