have birdstats.local (birdnet_stats.sh) working okay, not great

This commit is contained in:
Patrick McGuire
2021-09-29 14:44:33 -04:00
parent 7c1ee9e61a
commit b186e5d6a1
2 changed files with 10 additions and 12 deletions
+4 -3
View File
@@ -23,13 +23,14 @@ else
a=0
fi
echo
SOFAR=$(wc -l ${IDFILE}| cut -d' ' -f1)
SOFAR=$(($(wc -l ${IDFILE}| cut -d' ' -f1)/2))
echo " -$a detections so far"
echo
echo " -$SOFAR species identified so far"
echo
while read -r line;do
echo " + $line"
done < ${IDFILE}
echo " | $line"
done < <(awk -v n=2 '1; NR % n == 0 {print ""}' ${IDFILE})
echo
echo -n "Listening since "${INSTALL_DATE}""
sleep 180