#!/bin/bash . ./config.sh set -x done="$(find output_v2 -type f | wc -l)" todo=$((${#COUNT_ARR[@]} * ${#TYPE_ARR[@]} * ${#API_ARR[@]} * ${#NN_ARR[@]} * ${#PPN_ARR[@]} * ${#T_ARR[@]})) remains=$(($todo - $done)) set +x echo "$(($remains * 1 / 60)) h"