diff --git a/prepare.sh b/prepare.sh index cc46803..3a66359 100755 --- a/prepare.sh +++ b/prepare.sh @@ -9,6 +9,7 @@ if test -e $ofn".csv" ; then echo "$fae" else libreoffice --headless --convert-to csv:"Text - txt - csv (StarCalc)":"59,,76,3,1/1/2/2/2" $if || { echo "errors during export to csv"; exit 3; } - tail -n +2 ${ofn}".csv" | cut -d";" -f2,13-17 > ${ofn}".tmp" && mv ${ofn}".tmp" ${ofn}".csv" || { echo "error on removing first line."; exit 6; } + tail -n +2 ${ofn}".csv" | cut -d";" -f2,13-17|grep -e "^[v|g|n]" > ${ofn}".tmp" + mv ${ofn}".tmp" ${ofn}".csv" || { echo "error on removing first line."; exit 6; } fi