adjusted birdnet_stats.sh and extractions for cleaner extraction

This commit is contained in:
Patrick McGuire
2021-10-09 10:44:32 -04:00
parent 7328c5792e
commit f01b049891
2 changed files with 33 additions and 39 deletions
+1 -5
View File
@@ -18,11 +18,7 @@ while true;do
\___/'
EOF
if [ "$(find ${EXTRACTED} -name '*.wav' | wc -l)" -ge 1 ] &> /dev/null;then
a=$( find "${EXTRACTED}" -name '*.wav' \
| awk -F "/" '{print $NF}' \
| cut -d'-' -f1 \
| sort -n \
| tail -n1 )
a=$(find "${EXTRACTED}/By_Date" -type f -name '*.wav' | wc -l)
else
a=0
fi