Updated to use old timetracker.py (slightly different output format than Rust program)
This commit is contained in:
parent
7f4ab49c91
commit
d86822c40e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue