Skip to content

Instantly share code, notes, and snippets.

@breun
Created June 27, 2010 23:24
Show Gist options
  • Save breun/455259 to your computer and use it in GitHub Desktop.
Save breun/455259 to your computer and use it in GitHub Desktop.
Generate a password of 10 random alphanumeric characters
#!/bin/sh
# Generate a string of 10 random alphanumeric characters
env LC_CTYPE=C tr -cd "[:alnum:]" < /dev/urandom | head -c 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment