diff options
author | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
---|---|---|
committer | David Wührer <def@gmx.at> | 2024-05-18 21:04:34 +0200 |
commit | 77cfffee6177fb0421fa0fce15d6a1875bde4816 (patch) | |
tree | 251428cdd482ea50cfb019dbd3c3bafd79d2fd14 /bin/sum-down | |
parent | 75b23ce1ff0daab363725a2a5755ea80bbeaa68e (diff) |
manuals, sum-down, radix
Diffstat (limited to 'bin/sum-down')
-rw-r--r-- | bin/sum-down | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/sum-down b/bin/sum-down new file mode 100644 index 0000000..49717ea --- /dev/null +++ b/bin/sum-down @@ -0,0 +1,14 @@ +#!/usr/bin/awk -E + +{ split($0, _columns, "\t") + for(i in _columns){ + columns[i] += _columns[i] + } +} +END { + output=columns[0] + for(i in columns){ + output = output "\t" columns[i] + } + print output +} |