Created
January 11, 2012 14:42
-
-
Save apg/1594958 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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