diff options
author | tv <tv@also> | 2010-04-13 21:00:33 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-07-24 20:13:43 +0200 |
commit | 51c83c8532cbc2ef5164fc61f7be00eadf7ac6d4 (patch) | |
tree | 69a12fa241c498bb5e7a8cd243b4cbb545816d00 /kvutils/kv2csv | |
parent | 31838ea631f7cb776d838c444cf581542c17aebc (diff) |
Initial commit: anonbox, kvutils
Diffstat (limited to 'kvutils/kv2csv')
-rwxr-xr-x | kvutils/kv2csv | 5 |
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 |