From b382d465a3268f2639bcf2b1f988d1ea5da10134 Mon Sep 17 00:00:00 2001 From: Patrick McGuire <60325264+mcguirepr89@users.noreply.github.com> Date: Fri, 18 Mar 2022 09:08:53 -0400 Subject: [PATCH] Update extract_new_birdsounds.sh --- scripts/extract_new_birdsounds.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/extract_new_birdsounds.sh b/scripts/extract_new_birdsounds.sh index 8b7abc8..ca91a8a 100755 --- a/scripts/extract_new_birdsounds.sh +++ b/scripts/extract_new_birdsounds.sh @@ -68,7 +68,7 @@ for h in "${SCAN_DIRS[@]}";do if [[ $locale_decimal == "." ]]; then CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; ${CONFIDENCE} * 100" | bc)")" else - CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; "${CONFIDENCE//./,}" * 100" | bc)")" + CONFIDENCE_SCORE="$(printf %.0f "$(echo "scale=2; "${CONFIDENCE}" * 100" | bc | tr '.' ',')")" fi NEWFILE="${COMMON_NAME// /_}-${CONFIDENCE_SCORE}-${OLDFILE//.wav/.${AUDIOFMT}}" echo "NEWFILE=$NEWFILE"