From 32452c459668868ce432f8bd91e421af2ac14d71 Mon Sep 17 00:00:00 2001 From: vv01f Date: Mon, 13 Apr 2020 13:46:17 +0200 Subject: [PATCH] filter actual members --- prepare.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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