The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: Grep question.
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 12-10-2007
saurabhsinha23 saurabhsinha23 is offline
Registered User
 

Join Date: Dec 2007
Posts: 10
Grep question.

Hi,

I am executing the below command.

grep ".UPDATE" file1.txt | grep -v MQQUEUE > Myprog1

The expected output is all lines in file1.txt which have the string ".UPDATE" and dont contain the string MQQUEUE.

However, the output which I am getting is just searching for the string "UPDATE" instead of ".UPDATE".

Please advise where I am going wrong.

TIA.
Saurabh
Reply With Quote
Remove advertisements
!!
Forum Sponsor