darkrc/bin/xls2csv
2023-10-24 16:44:17 +02:00

7 lines
175 B
Bash
Executable file

#!/bin/sh
for sheet in $(in2csv --names "$1")
do
basename=$(echo $1 | sed -e 's/\.[^\.]\+$//')
in2csv --sheet "$sheet" "$1" | csvformat -D \; > "$basename-$sheet.csv"
done