Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Grep Help
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.
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-lReceived on Wed Apr 12 2006 - 23:35:54 CDT