Skip to content

Instantly share code, notes, and snippets.

@davidcastellani
Forked from lyoshenka/passwordgen.sh
Created May 17, 2016 13:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidcastellani/d04df22577252e769d7a495ade77a594 to your computer and use it in GitHub Desktop.
Save davidcastellani/d04df22577252e769d7a495ade77a594 to your computer and use it in GitHub Desktop.
Bash Random Password Generator
#!/bin/bash
head -n100 /dev/urandom | strings | egrep -o '([a-zA-Z0-9#%&^])' | awk '{ORS=""; print $1}' | head -c 35; echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment