[plug] grep and regular expressions...

James Elliott James.Elliott at wn.com.au
Fri May 16 15:33:46 WST 2003


Without looking up my notes, aren't you saying by using "$" that you want to
look at the end of the line ... but the end of the line is ".html"

James
----- Original Message ----- 
From: "David Buddrige" <buddrige at wasp.net.au>
To: <plug at plug.linux.org.au>
Sent: Friday, May 16, 2003 11:30 AM
Subject: [plug] grep and regular expressions...


> Hi all,
>
> I have a series of html text files that have the characters \f at the end
of
> some of the lines.
>
> I am wanting to run a grep command that will pick up any line in the file
> that ends with the literal characters " \f"  (that is to say space, slash
f)
>
> I have tried the following grep commands to pull out these lines:
>
>
> grep "\\f$" *.htm
>
> and
>
> grep "\ \\f$" *.htm
>
> and
>
> grep " \f$" *.htm
>
> grep "f$" *.htm
>
> however none of these match the lines I am after.  Can anyone see what's
> wrong with my regular expressions?
>
> thanks
>
> David Buddrige.
>
>
>
> the expected start and end times of the plan can be modified<a
> name="IX_165"></a> \f
>




More information about the plug mailing list