Advertisement
jms1

gpg-forget-cards

Dec 8th, 2023
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.18 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # gpg-forget-cards
  4.  
  5. set -x
  6.  
  7. find "$HOME"/.gnupg/private-keys-v1.d -type f -print0 \
  8.     | xargs -0 grep -l --null 'shadowed-private-key' \
  9.     | xargs -0 -r rm -v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement