Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Grep Help

RE: Grep Help

From: Cary Millsap <cary.millsap_at_hotsos.com>
Date: Wed, 12 Apr 2006 23:35:54 -0500
Message-ID: <C970F08BBE1E164AA8063E01502A71CF4EEEC7@WIN02.hotsos.com>


I think you may have a defective grep:  

23:32:46.08 $ cat f

$Log: Blah  

23:32:58.70 $ grep "\$Log: .*\$" f  

23:33:11.18 $

23:34:41.16 $ grep --version

grep (GNU grep) 2.5.1  

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     23:34:55.15 $  

(Notice that your narrative and your RE mismatch slightly, because there's a space after your colon, but this doesn't matter with respect to your actual question.)    

Cary Millsap

Hotsos Enterprises, Ltd.

http://www.hotsos.com

Nullius in verba  

Hotsos Symposium 2007 / March 4-8 / Dallas

Visit www.hotsos.com for curriculum and schedule details...


From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Ethan Post Sent: Wednesday, April 12, 2006 2:57 PM
To: Oracle Discussion List
Subject: Grep Help  

> cat f

$Log: Blah

> grep "\$Log: .*\$" f

$Log: Blah

I am actually looking for a line which has Dollar Log Colon ...any characters...dollar...any characters...but this still returns the line, even thought it is missing the last dollar. I am sure this is a pretty obvious one, please help.  

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Apr 12 2006 - 23:35:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US