Skip to content

Instantly share code, notes, and snippets.

@matthias-chlechowitz
Created September 3, 2015 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthias-chlechowitz/a96cceea7a3e9ff8ebd9 to your computer and use it in GitHub Desktop.
Save matthias-chlechowitz/a96cceea7a3e9ff8ebd9 to your computer and use it in GitHub Desktop.
generate random string
LC_CTYPE=C tr -dc A-Za-z0-9 < /dev/urandom | fold -w ${1:-32} | head -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment