Created
July 26, 2017 20:56
-
-
Save billwestfall/93e4f2036f559be45580ad5fde9a14cb to your computer and use it in GitHub Desktop.
Print random string of (1-100) characters to terminal every 15 seconds
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
while (my_rand=$(gshuf -i 1-100 -n 1); cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | fold -w $my_rand | head -n 1); unset my_rand; do sleep 15; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment