summaryrefslogtreecommitdiffstats
path: root/kvutils/kv2csv
diff options
context:
space:
mode:
Diffstat (limited to 'kvutils/kv2csv')
-rwxr-xr-xkvutils/kv2csv5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvutils/kv2csv b/kvutils/kv2csv
new file mode 100755
index 00000000..f075229c
--- /dev/null
+++ b/kvutils/kv2csv
@@ -0,0 +1,5 @@
+#! /bin/sh
+set -euf
+kv="`cat`"
+echo "$kv" | cut -f 1 | tr '\n' , | sed 's/,$//' ; echo
+echo "$kv" | cut -f 2 | tr '\n' , | sed 's/,$//' ; echo