Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Aug 2008 15:12:57 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Steve Bertrand <steve@ibctech.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sed/awk, instead of Perl
Message-ID:  <20080821151239.J7822@wojtek.tensor.gdynia.pl>
In-Reply-To: <48AD6502.1040407@ibctech.ca>
References:  <48AD63B7.8090107@ibctech.ca> <48AD6502.1040407@ibctech.ca>

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

>
> Steve
> _______________________________________________
> 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"
>
>



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