filter actual members

This commit is contained in:
vv01f 2020-04-13 13:46:17 +02:00
parent 39f8a983ca
commit 32452c4596
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 2 additions and 1 deletions

View File

@ -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