sed/awk, instead of Perl
Wojciech Puchar
wojtek at wojtek.tensor.gdynia.pl
Thu Aug 21 13:13:09 UTC 2008
>
> 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>
More information about the freebsd-questions
mailing list