#!/usr/bin/env bash set -u set -o pipefail export LC_ALL=C counts=(8 5 3) total=0 for count in "${counts[@]}"; do ((total+=count)) done [[ $total -eq 16 ]] || exit 1 step=0 while (( step < 2 )); do ((step+=1)) done printf "Total %d sheets; while iterations %d\n" "$total" "$step"