Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save billwestfall/93e4f2036f559be45580ad5fde9a14cb to your computer and use it in GitHub Desktop.
Save billwestfall/93e4f2036f559be45580ad5fde9a14cb to your computer and use it in GitHub Desktop.
Print random string of (1-100) characters to terminal every 15 seconds
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