summaryrefslogtreecommitdiff
path: root/bin/pivot
diff options
context:
space:
mode:
authorDavid Wührer <def@gmx.at>2024-05-18 21:04:34 +0200
committerDavid Wührer <def@gmx.at>2024-05-18 21:04:34 +0200
commit77cfffee6177fb0421fa0fce15d6a1875bde4816 (patch)
tree251428cdd482ea50cfb019dbd3c3bafd79d2fd14 /bin/pivot
parent75b23ce1ff0daab363725a2a5755ea80bbeaa68e (diff)
manuals, sum-down, radix
Diffstat (limited to 'bin/pivot')
-rwxr-xr-xbin/pivot11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/pivot b/bin/pivot
new file mode 100755
index 0000000..3c750f2
--- /dev/null
+++ b/bin/pivot
@@ -0,0 +1,11 @@
+#!/usr/bin/awk -f
+
+{
+ split ($0, _columns, "\t")
+ for (i=0;i<length(_columns);++i) {
+ columns[i] = columns[i] "\t" _columns[i]
+} }
+END {
+ for (i=0;i<length(columns);++i) {
+ print substr(columns[i],2)
+} }