Skip to content

Instantly share code, notes, and snippets.

@jakeonfire
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakeonfire/4d793e0f62d0a7f1d726 to your computer and use it in GitHub Desktop.
Save jakeonfire/4d793e0f62d0a7f1d726 to your computer and use it in GitHub Desktop.
#!/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