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: MVE <mvetmp-ora_at_yahoo.com>
Date: Wed, 12 Apr 2006 21:21:44 -0700 (PDT)
Message-ID: <20060413042144.49806.qmail@web31805.mail.mud.yahoo.com>


Here's one way:

piglet.HJPRD-> cat x

$Log: Blah
$Log: Blah 1
$Log: Blah 2
$Log: Blah 3 $
$Log: Blah 4 $

piglet.HJPRD-> grep '^\$Log:*' x | grep "\$$" $Log: Blah 3 $
$Log: Blah 4 $
piglet.HJPRD-> uname -a
SunOS piglet 5.9 Generic_118558-20 sun4u sparc SUNW,Ultra-4 piglet.HJPRD->

> > 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:21:44 CDT

Original text of this message

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