[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bugs about grep

From: Hans-Bernhard Broeker
Subject: Re: bugs about grep
Date: 8 Jul 2004 13:06:19 GMT

?? <address@hidden> wrote:

> #cat abc | grep -Fw
>         ----no result .

It may not be totally clear from the documentation, but with a bit of
thinking it can be seen that -F and -w quite certainly can't work
together.  -w applies to regexps, whereas -F says that the pattern
isn't a regexp at all, because the program effectively isn't "grep",
then --- it's "fgrep".

I think what you really should be using is

        grep -w '10\.1\.3\.3' < abc

Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]