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-> - Vitaliy --- Ethan Post <post.ethan@xxxxxxxxx> wrote: > > 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. > -- //www.freelists.org/webpage/oracle-l