diff options
author | Justin Davis <jrcd83@gmail.com> | 2012-05-25 18:59:17 +0200 |
---|---|---|
committer | Justin Davis <jrcd83@gmail.com> | 2012-05-25 18:59:17 +0200 |
commit | bed4f6a720db164326eb958d03fc487ac81e732a (patch) | |
tree | 45c1d82663f2dd02be8f27de16e80756c2aea9ba /bin | |
parent | ee23e98d42521ac33dcc6840f6db07bf3ba8ef3b (diff) | |
download | genpkg-bed4f6a720db164326eb958d03fc487ac81e732a.tar.gz genpkg-bed4f6a720db164326eb958d03fc487ac81e732a.tar.xz |
Print custom variables at the end of the fields list.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pbfields | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/pbfields b/bin/pbfields index 9846aab..a27948a 100755 --- a/bin/pbfields +++ b/bin/pbfields @@ -59,10 +59,7 @@ END { } OFS = "="; ORS = "\n"; - for(i = 1; i <= customlen; i++){ - v = customvars[i] - print "_" v, unk[v] - } + for(i=1; i<=max; i++){ name = fields[i] if(!(name in output)){ @@ -75,6 +72,11 @@ END { print name, output[name] } } + + for(i = 1; i <= customlen; i++){ + v = customvars[i] + print "_" v, unk[v] + } } function wraparray (indent) |