Forked from earthgecko/bash.generate.random.alphanumeric.string.sh
Last active
August 29, 2015 14:17
-
-
Save pditommaso/9a7728e0240230226d34 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
# bash generate random alphanumeric string | |
# | |
dd bs=18 count=1 if=/dev/urandom 2>/dev/null | base64 | tr +/ 0A |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
More details here
http://stackoverflow.com/a/29494591/395921