Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Nov 2007 11:28:58 +1100
From:      "Gavin Cameron" <ggcameron@gmail.com>
To:        "deeptech71@gmail.com" <deeptech71@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: reverse grep
Message-ID:  <1efd1aec0711031728k1ccd8abepc49e2b0ec6e0695@mail.gmail.com>
In-Reply-To: <472D0E7D.6050209@gmail.com>
References:  <472D0E7D.6050209@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/4/07, deeptech71@gmail.com <deeptech71@gmail.com> wrote:
>
> How is it possible to select lines that do NOT match a specific pattern?
>
> For example, I'm connecting to 192.168.123.254 via telnet (port 23), and
> do tcpdump -nli rl0. This cyclic traffic, becuase when tcpdump outputs
> something, the system sends me some packets, which generates output in
> tcpdump, and vice versa. I want to filter out packets of telnet access
> to the FreeBSD machine, that is, something like:
>
>      tcpdump -nli rl0 | grep --non-matching-lines 192.168.123.254.23


grep -v

man grep

_______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1efd1aec0711031728k1ccd8abepc49e2b0ec6e0695>