Skip to content

Instantly share code, notes, and snippets.

@aussiehash
Forked from askedrelic/get_keychain
Last active August 29, 2015 14:07
Show Gist options
  • Save aussiehash/7c73879d3cb98bff0934 to your computer and use it in GitHub Desktop.
Save aussiehash/7c73879d3cb98bff0934 to your computer and use it in GitHub Desktop.
#!/bin/sh
security find-generic-password -a "$1" -g 2>&1 | grep password | sed -e "s/password: \"//" -e "s/\"//"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment