Last active
November 5, 2020 06:32
-
-
Save ezhov-da/45ffafd5705ae82c4e7f793d42772de7 to your computer and use it in GitHub Desktop.
Цикл
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> 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