From 018997ec4e7ac0da061b973d494f92397a376c11 Mon Sep 17 00:00:00 2001 From: pi-rho Date: Thu, 7 Feb 2013 09:39:43 -0600 Subject: [PATCH] and now for the right fix --- scripts/dumbdecode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dumbdecode b/scripts/dumbdecode index ff1810c..993c177 100755 --- a/scripts/dumbdecode +++ b/scripts/dumbdecode @@ -33,7 +33,7 @@ shift $((OPTIND-1)) if [[ $# == 0 ]]; then usage; fi pmerge "$@" | puniq - | pcat | while read ts proto src dst payload; do - local when=$(date --utc --rfc-3339=ns -d "@$ts") src=${src%,*} dst=${dst%,*} + : when=$(date --utc --rfc-3339=ns -d "@$ts") src=${src%,*} dst=${dst%,*} printf "Packet %s None: None\n" $proto printf " %s -> %s (%s)\n" ${src/,/:} ${dst/,/:} "${when/\+00:00/Z}" echo $payload | unhex | hdng -w ${width}