Skip to content

Instantly share code, notes, and snippets.

@ezhov-da
Last active November 5, 2020 06:32
Show Gist options
  • Save ezhov-da/45ffafd5705ae82c4e7f793d42772de7 to your computer and use it in GitHub Desktop.
Save ezhov-da/45ffafd5705ae82c4e7f793d42772de7 to your computer and use it in GitHub Desktop.
Цикл
==> https://linuxize.com/post/bash-increment-decrement-variable/
==> https://stackoverflow.com/questions/10515964/counter-increment-in-bash-loop-not-working
set +e;
NUMBER_RUNS = 3
COUNTER=1;
while [[ $COUNTER -le $NUMBER_RUNS ]];
do
echo "start $COUNTER of $NUMBER_RUNS";
echo q;
COUNTER=$((COUNTER + 1));
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment