reverse grep

Gavin Cameron ggcameron at gmail.com
Sat Nov 3 17:53:51 PDT 2007


On 11/4/07, deeptech71 at gmail.com <deeptech71 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list