summaryrefslogtreecommitdiff
path: root/bin/mymerkur2csv
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2014-09-05 14:37:20 +0200
committerJonas Smedegaard <dr@jones.dk>2014-09-05 14:37:20 +0200
commitdbbd076cf9bfa1c337cefd757bc636f808b0bda6 (patch)
tree995d70a7081b7cde5966003347cc615eabf467f9 /bin/mymerkur2csv
parentda5727968ab7cd6c3e9068a7f0477bbc2141fc1a (diff)
Split CSV parsing into scripts mycsv2ledger mymerkur2csv.
Diffstat (limited to 'bin/mymerkur2csv')
-rwxr-xr-xbin/mymerkur2csv8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/mymerkur2csv b/bin/mymerkur2csv
new file mode 100755
index 0000000..e4ffef4
--- /dev/null
+++ b/bin/mymerkur2csv
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+set -e
+
+infile="$1"
+outfile="${2:-$(basename "$infile" .csv)_out.csv}"
+
+csvtool -t ";" -u COMMA square "$infile" > "$outfile"