From owner-freebsd-questions@FreeBSD.ORG Thu Aug 21 13:47:01 2008 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 27D11106568B for ; Thu, 21 Aug 2008 13:47:01 +0000 (UTC) (envelope-from ws@au.dyndns.ws) Received: from ipmail05.adl2.internode.on.net (ipmail05.adl2.internode.on.net [203.16.214.145]) by mx1.freebsd.org (Postfix) with ESMTP id A16A78FC08 for ; Thu, 21 Aug 2008 13:47:00 +0000 (UTC) (envelope-from ws@au.dyndns.ws) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Al8BAMUNrUiWZWdv/2dsb2JhbAAItXuBZg X-IronPort-AV: E=Sophos;i="4.32,245,1217773800"; d="scan'208";a="187168711" Received: from ppp103-111.static.internode.on.net (HELO [192.168.1.157]) ([150.101.103.111]) by ipmail05.adl2.internode.on.net with ESMTP; 21 Aug 2008 23:16:58 +0930 From: Wayne Sierke To: Wojciech Puchar In-Reply-To: <20080821151239.J7822@wojtek.tensor.gdynia.pl> References: <48AD63B7.8090107@ibctech.ca> <48AD6502.1040407@ibctech.ca> <20080821151239.J7822@wojtek.tensor.gdynia.pl> Content-Type: text/plain Date: Thu, 21 Aug 2008 23:16:55 +0930 Message-Id: <1219326415.49053.89.camel@predator-ii.buffyverse> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Steve Bertrand , freebsd-questions@freebsd.org Subject: Re: sed/awk, instead of Perl 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: Thu, 21 Aug 2008 13:47:01 -0000 On Thu, 2008-08-21 at 15:12 +0200, Wojciech Puchar wrote: > > > > cat tcpdump.txt | awk '{if ($3 != "192.168.100.204.25") print $3}' | \ > > awk '{FS = "."} {print $1,".",$2,".",$3,"."$4}' | sed s/" "//g > > > why you all abuse "cat" command. simply awk ....