Created
September 22, 2021 16:34
-
-
Save fazlearefin/b8060b333cce9df3f2074434d3308857 to your computer and use it in GitHub Desktop.
Bash | Sleep random seconds
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
#!/bin/bash | |
# 1-10 second random sleep/pause in the script | |
sleep $[ ( $RANDOM % 10 ) + 1 ]s | |
# even shorter sleep | |
sleep .$[ ( $RANDOM % 10 ) + 1 ]s | |
sleep .0$[ ( $RANDOM % 10 ) + 1 ]s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment