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

Join Date: Nov 2008
Posts: 21
When i search for a string in any file i use this:

Code:
find ./ -name "filename" | xargs grep "string_to_found"
In this way you can specify what kind of files are you searching for
"filename" or "file*" or "?ile_+.txt" or .....

it's clear and simple.