summaryrefslogtreecommitdiffstats
path: root/kvutils/kv2csv
blob: f075229cc6426b2169ed8b935b3be442c6784090 (plain)
1
2
3
4
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