Recursively counting the number of Markdown files in a directory
I have a directory full of Markdown notes I've accumulated over a decade and a half. Sometimes I like to count them so I can feel good about myself.
Here's how you do this using find:
$ find ~/Obsidian/Main/Journal/ -type f -name "*.md" | wc -l
But I prefer fd over find:
$ fd -t f -e md . ~/Obsidian/Main/Journal/ | wc -l