Last active
March 31, 2017 08:00
-
-
Save fnkr/0906f4dfd4645c5d68431282cade47c8 to your computer and use it in GitHub Desktop.
Generate random, alphanumeric strings in Bash.
This file contains 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 | |
RANDSTR="$(cat /dev/urandom | LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c 40)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FreeBSD-compatible: