[plug] Re: grep and regular expressions...
David Buddrige
buddrige at wasp.net.au
Fri May 16 16:03:38 WST 2003
James Elliott writes:
> 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"
>
No, I'm saying look for all lines that end in \f in all .htm files. So I
should get an entry for each line in any .htm file that ends in \f.
8-)
cheers
David.
> 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