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 -->
  #1 (permalink)  
Old 04-03-2006
amon amon is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 71
multiple search with grep

is it possible to execute multiple search with grep???

grep criteria1 criteria2 file


something like this...

I know other way:

grep pattern1 file-name1 > results-file
grep pattern2 file-name1 >> results-file
cat results-file

but can it be done with one grep????