Rev. | af1350fc180af4c873a269117f79e61270de2eba |
---|---|
Größe | 557 Bytes |
Zeit | 2022-01-20 00:12:25 |
Autor | Lorenzo Isella |
Log Message | A script to batch convert ods and xlsb to csv files. |
#!/bin/bash
# #convert pdf to png
# FILES="*.pdf"
# for F in $FILES
# do
# newname=`basename "$F".pdf`
# echo $newname
# pdftoppm "$F" -rx 300 -ry 300 "$newname.png"
# done
FILES="*.ods"
for F in $FILES
do
newname=`basename "$F"`
echo $newname
# pdftoppm "$F" -rx 300 -ry 300 "$newname.png"
soffice --convert-to csv --outdir text_conversion/ $newname
done
FILES="*.xlsb"
for F in $FILES
do
newname=`basename "$F"`
echo $newname
# pdftoppm "$F" -rx 300 -ry 300 "$newname.png"
soffice --convert-to csv --outdir text_conversion/ $newname
done