summaryrefslogtreecommitdiff
path: root/bin/mymerkur2csv
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mymerkur2csv')
-rwxr-xr-xbin/mymerkur2csv4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mymerkur2csv b/bin/mymerkur2csv
index e4ffef4..f5da61f 100755
--- a/bin/mymerkur2csv
+++ b/bin/mymerkur2csv
@@ -3,6 +3,8 @@
set -e
infile="$1"
-outfile="${2:-$(basename "$infile" .csv)_out.csv}"
+dirname=$(dirname "$infile")
+basename=$(basename "$infile" .csv)
+outfile="${2:-$dirname/${basename}_out.csv}"
csvtool -t ";" -u COMMA square "$infile" > "$outfile"