How to Get a List of Markdown Files Updated This Month

By Joel Dare - Updated April 14, 2026 - Written September 4, 2025

I want to start sending a monthly update to my email subscribers. A funky bunch of less than 20 unsuspecting folks. I guess you have to start somewhere.

Modified Markdown Files

I keep my blog posts as a set of markdown files. Because of this I can look at these files to figure out what I’ve modified this month.

MacOS

Here’s a (somewhat complex) find command that will list all the files I’ve modified this month, the as well as the created and modified dates. This works on MacOS.

find . -type f \
    -not -path '*/.*' \
    -newermt "$(date '+%Y-%m-01')" \
    -exec stat -f "%N  modified: %Sm  created: %SB" -t "%Y-%m-%d %H:%M:%S" {} \;

I use that list to remind myself what documents I added or updated.

Linux

Here’s the Linux equivelent, but keep in mind that on Linux %w (birth time) is often unavailable.

find . -type f \
    -not -path '*/.*' \
    -newermt "$(date '+%Y-%m-01')" \
    -exec stat --format="%n  modified: %y  created: %w" {} \;
Leave a Comment
through formrobin.com

JoelDare.com © Dare Companies Dotcom LLC

Terms - Privacy