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 -->
  #1 (permalink)  
Old 08-30-2008
tvrman tvrman is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 9
using egrep to get result

Hi all,

Can egrep using AND OR ?, like egrep -i "title.$1" AND "category.$2" ./home....

I want to give two search criteria, the files where egrep is seaching in for example
looks like below rows.
title this is an test
category space

(command line input)
$1 script.sh this space

thanks