Created
October 4, 2022 13:50
-
-
Save hartsock/fe41608f9147b08a58d3963cbfe585a2 to your computer and use it in GitHub Desktop.
Repeat the rest of the CLI 30 times. Example: `repeat.sh echo "foo"`
This file contains hidden or 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
#!/usr/bin/env bash | |
STOP=30 | |
i=0; | |
while [ $i -le $STOP ] | |
do | |
i=$((i+1)) | |
echo -n "${i} :" | |
exec "$@"& | |
echo | |
echo -n "... pause ..." | |
sleep 3 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment