Last active
August 29, 2015 14:24
-
-
Save jakeonfire/4d793e0f62d0a7f1d726 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 | |
if [ $# != 2 ]; then | |
echo "usage: ./gpg-grep filename.gpg search" | |
exit 1 | |
fi | |
gpg --decrypt --quiet $1 | grep $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment