Skip to content

Instantly share code, notes, and snippets.

@zeuxisoo
Created August 29, 2011 08:43
Show Gist options
  • Save zeuxisoo/1178023 to your computer and use it in GitHub Desktop.
Save zeuxisoo/1178023 to your computer and use it in GitHub Desktop.
Shell Script Generate Random Password
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