From owner-freebsd-questions@FreeBSD.ORG Sun Nov 4 00:13:58 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EBD316A46E for ; Sun, 4 Nov 2007 00:13:58 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 97CB213C4B9 for ; Sun, 4 Nov 2007 00:13:55 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so897662nfb for ; Sat, 03 Nov 2007 17:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; bh=3WjIUPa1HW2V2faxp566E93AP56dalScSIhQwdvWIEw=; b=C1M2k5S2QWmuDibK/Xb0quPVcFuKGPY90vV6CNgNNAo29rRVOiyHFVZlgM0SLMwzlhwddNET06O0JlyuRgJBj8wsnmyRGTINu9H6enHqzkORurieT+r+E8aJ17vfUBhn3zfdZPaX8z+x35E5ITFflY6/Dj9/Qga9Hbs4sLPKps8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Uoov/11C49oO8Y0aNIc4lTKb7iN9A3japUZdeE9QT6k1rUy2jGT8CeNoPJXpiP2qJWi+UsP++mWqjGAf4jsuLa0jKY3dR/tnkBR8gsO3RHmo2Vh2p5G7bpZfE0BKAxMcHJeFkQn3U0HB+euT8V6Xf/lmle/Z01ZmM+6an98JUMw= Received: by 10.86.100.7 with SMTP id x7mr2107272fgb.1194135224287; Sat, 03 Nov 2007 17:13:44 -0700 (PDT) Received: from ?192.168.123.1? ( [84.0.100.183]) by mx.google.com with ESMTPS id f19sm8766970fka.2007.11.03.17.13.41 (version=SSLv3 cipher=RC4-MD5); Sat, 03 Nov 2007 17:13:42 -0700 (PDT) Message-ID: <472D0E7D.6050209@gmail.com> Date: Sun, 04 Nov 2007 01:12:45 +0100 From: deeptech71@gmail.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.8) Gecko/20071009 MultiZilla/1.8.3.3a SeaMonkey/1.1.5 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: reverse grep X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Nov 2007 00:13:58 -0000 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