RE: Grep Help

  • From: "Cary Millsap" <cary.millsap@xxxxxxxxxx>
  • To: <post.ethan@xxxxxxxxx>, "Oracle Discussion List" <oracle-l@xxxxxxxxxxxxx>
  • Date: Wed, 12 Apr 2006 23:35:54 -0500

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@xxxxxxxxxxxxx
[mailto:oracle-l-bounce@xxxxxxxxxxxxx] 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. 
 

Other related posts: