Created
August 29, 2011 08:43
-
-
Save zeuxisoo/1178023 to your computer and use it in GitHub Desktop.
Shell Script Generate Random Password
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
pw () { | |
p=`perl -e 'print map { chr rand(94) + 33 } 1..16';` | |
echo -n $p | pbcopy | |
echo $p | |
} | |
alias pw="perl -le 'print map { chr rand(94) + 33 } 1..16';" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment