With the turn of a new year I was curious how many postings I made in the past 12 months, and how many words I had written on my sites.
Counting the number of postings is simple, it’s just the number of files in my _posts
folder.
$ cd path/to/source/_posts
$ ls -l | grep 2012 | wc -l
Counting the number of words contained in those files with a 2012
in the name was a bit trickier, but a couple of searches and two Stack Overflow answers combined gave me this:
$ cd path/to/source/_posts
$ find . -name "*2012*" -maxdepth 1 -print0 | xargs -0 cat | wc -w
Armed with these two commands I decided it would be fun to see, year by year, the number of postings made and words written.
My Cello site is much younger, but here are the year by year statistics for it as well.
Combined, I’ve written 2,274 posts containing 693,865 words.