From 77cfffee6177fb0421fa0fce15d6a1875bde4816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 18 May 2024 21:04:34 +0200 Subject: manuals, sum-down, radix --- bin/sum-down | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 bin/sum-down (limited to 'bin/sum-down') 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 +} -- cgit v1.2.3