Home - TIL - Zines

Sending a Monthly Update

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.

Here’s a (somewhat complex) find command that will list all the files I’ve modified in the previous month and the original date I created those files.

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

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


Joel's Newsletter

Get a monthly digest of what I'm up to.

Subscribe by Email