#!/usr/bin/env bash counter=0 # Do this forever while true; do (../build/Assignment5 < ../documentation/a5_sample_input_2.txt) counter=$((counter+1)) echo $counter done