Skip to content

Instantly share code, notes, and snippets.

@thomaswilley
Last active February 14, 2021 05:17
Show Gist options
  • Save thomaswilley/c538c4e7dc8ef2bfe90f9594480a90d4 to your computer and use it in GitHub Desktop.
Save thomaswilley/c538c4e7dc8ef2bfe90f9594480a90d4 to your computer and use it in GitHub Desktop.
1-liner to generate arbitrary number of random alphanumeric chars.
# generate 5000 chars
tr -dc A-Za-z0-9 </dev/urandom | head -c 5000 ; echo ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment