Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2007 01:12:45 +0100
From:      deeptech71@gmail.com
To:        freebsd-questions@freebsd.org
Subject:   reverse grep
Message-ID:  <472D0E7D.6050209@gmail.com>

next in thread | raw e-mail | index | archive | help
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



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