Browse Source

filter actual members

master
vv01f 10 months ago
parent
commit
32452c4596
No known key found for this signature in database GPG Key ID: 2625A16AC1D1FF6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      prepare.sh

+ 2
- 1
prepare.sh 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

Loading…
Cancel
Save