summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/pbjparse.awk8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pbjparse.awk b/bin/pbjparse.awk
index e591ca8..e72d9d2 100755
--- a/bin/pbjparse.awk
+++ b/bin/pbjparse.awk
@@ -18,12 +18,12 @@ END {
}
else tcmd = "cat"
- for (key in pbvars) {
- split(key, keys, SUBSEP)
-
+ for (dblkey in pbvars) {
+ split(dblkey, keys, SUBSEP)
if (keys[2] != "len") continue
+
name = keys[1]
- len = pbvars[key]
+ len = pbvars[dblkey]
print name | tcmd
for (i=1; i<=len; i++) print pbvars[name,i] | tcmd