nick34992
8/19/2017 - 8:38 PM

Bash: Counter

Bash: Counter

#!/bin/bash

declare -i COUNTER
COUNTER=10

  while [ $COUNTER -gt 2 ]; do
    echo Counter value: $COUNTER
    COUNTER=COUNTER-1
  done

exit 0