The UNIX and Linux Forums  

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



Thread: grep problem
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 09-06-2001
Optimus_P Optimus_P is offline
flim flam flamma jamma
 

Join Date: May 2001
Location: Chicago IL, USA
Posts: 1,006
you could try it. but from what i recall. by default grep will take 2 arguemnts. and if the argument is part of the metacharter set it ie your "$" will make the next charters a variable.

First: try without any quotes. if that does not work try w/ single quotes around each variable.

also makesure you echo your variable befor the grep statement (just for testing) to make sure you are passing information to the variable.