Skip to content

Instantly share code, notes, and snippets.

@apg
Created January 11, 2012 14:42
Show Gist options
  • Save apg/1594958 to your computer and use it in GitHub Desktop.
Save apg/1594958 to your computer and use it in GitHub Desktop.
#!/bin/bash
# passadd
if [ -z "$PASSFILE" ]
then
echo "PASSFILE doesn't exist"
exit 1
fi
if [ $# -ne 1 ]
then
echo "usage: passlook [which]"
exit 1
else
gpg --for-your-eyes-only -d $PASSFILE | grep $1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment