[plug] Re: grep and regular expressions...

Brad Hill brad at marketcast.com.au
Fri May 16 11:59:03 WST 2003


Damn.... works here:

[brad at brad-compaq brad]$ cat blah
this
is \f
a
file \f
with
some
\f's
at \f
the end
of \f some
lines \f
[brad at brad-compaq brad]$ grep " \\\\f$" blah
is \f
file \f
at \f
lines \f
[brad at brad-compaq brad]$ grep \ \\\\f$ blah
is \f
file \f
at \f
lines \f
[brad at brad-compaq brad]$ grep ' \\f$' blah
is \f
file \f
at \f
lines \f


What sort of output are you getting...?

perhaps if your grep a=command line is being passed through another level of
shell interpretation you should double up on your '\'s again? or use single
quotes to eliminate some shell expansion...?

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


> Brad Hill writes:
>
> > try grep " \\\\f$"
> >
>
> that didn't seem to work either.
>
> cheers
>
> David.



More information about the plug mailing list