Created
February 25, 2016 14:30
-
-
Save ekhabarov/cfe8c72a6d2a30662009 to your computer and use it in GitHub Desktop.
Generate random password in bash
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 | |
| pass=`LC_ALL=C tr -dc A-Za-z0-9 </dev/urandom | dd bs=100 count=1 2>/dev/null | head -c 16` | |
| echo $pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment