I have the following simple script where I am running a loop and want to maintain a COUNTER. I am unable to figure out why the counter is not updating. Is it du
COUNTER
Try to use
COUNTER=$((COUNTER+1))
instead of
COUNTER=$((COUNTER))