7 lines
175 B
Bash
Executable file
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
|