Skip to content

Instantly share code, notes, and snippets.

@dietercastel
Created October 8, 2019 16:45
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 dietercastel/f21f1ab67d6847e20cbff766befed2ff to your computer and use it in GitHub Desktop.
Save dietercastel/f21f1ab67d6847e20cbff766befed2ff to your computer and use it in GitHub Desktop.
Does what it says on the tin.
#!/usr/local/bin/fish
#
# Finds masterkey files of Joplin.
echo "Searching: " $argv
find "$argv" -name "*.md" -print0 | xargs -0 grep -lrniE "content:|checksum:|encryption_method: 2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment