From owner-freebsd-questions@FreeBSD.ORG Sun Nov 4 00:53:51 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 75D2616A417 for ; Sun, 4 Nov 2007 00:53:51 +0000 (UTC) (envelope-from ggcameron@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by mx1.freebsd.org (Postfix) with ESMTP id 48AF713C4AA for ; Sun, 4 Nov 2007 00:53:51 +0000 (UTC) (envelope-from ggcameron@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1542736waf for ; Sat, 03 Nov 2007 17:53:38 -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:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=9fH43GK6YO2uwNKls25cXU4NwdRtdLqBB7ffxHCL6po=; b=kd231UceoL+p1OWy/04Wm3Y3BgYSzTI3fm6xd7fpfrAQOas6yH9f9qXGLa2yuE/qVOIfzBr+KdWCqC10LxQlqDXdPK3K/1B6Ct2vxOaZ1hgJUTidw36OGhehlTSr2VFXut/fREb1ErFLYk5/8J5zMwhA70To7PH8xJXVwK60P5s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=G1i8e6c+MwPt9NJt9FCFZB7NYHbJ0Fl4FbevI2SKxHCP6qqfjt7+UIaE+dFEQQIWY9e459h8CMC3zGa/6iBIZxYYJSLC7AtklNPsb0RERXMpaTT6V/G4a8WaZsyVCk/xYWEErPvGQ0lOCwNy6sHdi+0s54MXWv4gOusxx+mVhks= Received: by 10.114.12.9 with SMTP id 9mr3529600wal.1194136138184; Sat, 03 Nov 2007 17:28:58 -0700 (PDT) Received: by 10.114.210.5 with HTTP; Sat, 3 Nov 2007 17:28:58 -0700 (PDT) Message-ID: <1efd1aec0711031728k1ccd8abepc49e2b0ec6e0695@mail.gmail.com> Date: Sun, 4 Nov 2007 11:28:58 +1100 From: "Gavin Cameron" To: "deeptech71@gmail.com" In-Reply-To: <472D0E7D.6050209@gmail.com> MIME-Version: 1.0 References: <472D0E7D.6050209@gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: 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:53:51 -0000 On 11/4/07, 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" >