Created
July 7, 2018 22:11
-
-
Save drunkensouljah/1f432620e331dbcc5234640ea10f84f7 to your computer and use it in GitHub Desktop.
[Random]
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/sh | |
| # | |
| # Creates a random string with characters from [A-Za-z0-9] | |
| # | |
| # Usage: ./random.sh length | |
| # | |
| LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | dd bs="${1?}" count=1 2>/dev/null | |
| echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment