Skip to content

Instantly share code, notes, and snippets.

@pkoch
Created September 24, 2022 21:30
Show Gist options
  • Save pkoch/85922d21a0d0686e111d04c641038eae to your computer and use it in GitHub Desktop.
Save pkoch/85922d21a0d0686e111d04c641038eae to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -ueo pipefail
if [ -z "${1:-}" ]
then
echo "Please provide the recepient as the argument" >&2
exit 1
fi
find . -type f | \
while read -r path
do
gpg -ea -r "$1" "$path"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment