Skip to content

Instantly share code, notes, and snippets.

@danse
Created January 26, 2012 15:41
Show Gist options
  • Save danse/1683323 to your computer and use it in GitHub Desktop.
Save danse/1683323 to your computer and use it in GitHub Desktop.
Generate a random password with a precise starting sequence
# paste this on the shell
startgen () { while ! pwgen -nyc | grep "^$1"; do :; done }
# then use it like
# startgen B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment