From d86822c40e21e1f20fc7744c3cb4fb22fa1fa792 Mon Sep 17 00:00:00 2001 From: Trey Blancher Date: Fri, 11 Nov 2022 12:36:14 -0500 Subject: [PATCH] Updated to use old timetracker.py (slightly different output format than Rust program) --- do_process.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/do_process.sh b/do_process.sh index 5f3165e..763677f 100755 --- a/do_process.sh +++ b/do_process.sh @@ -57,8 +57,8 @@ if [[ -f ${DATE} ]]; then subtotal=0 for pattern in "${KEYS[@]}"; do #echo "pattern=${pattern}" >&2 - $grep -- "\[${pattern}\]" ${DATE} | timetracker - subtotal=$(bc <<< "scale=2; ${subtotal} + $($grep -- "\[${pattern}\]" ${DATE} | timetracker | $grep "Section" | $grep -Po '\d+\.\d+hrs' | tr -d '[hrs]')") + $grep -- "\[${pattern}\]" ${DATE} | python timetracker.py + subtotal=$(bc <<< "scale=2; ${subtotal} + $($grep -- "\[${pattern}\]" ${DATE} | python timetracker.py | $grep "Section" | $grep -Po '\d+\.\d+hrs' | tr -d '[hrs]')") printf "Subtotal: %3.2fhrs\n" ${subtotal} echo if [[ "${WHOLE}x" == "x" ]]; then