Skip to content

Instantly share code, notes, and snippets.

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 ludwigschubert/cd2bc4686e3fc6c8202c875c6b211533 to your computer and use it in GitHub Desktop.
Save ludwigschubert/cd2bc4686e3fc6c8202c875c6b211533 to your computer and use it in GitHub Desktop.
Distill publishing stats
[1] `jq '.posts[].authors | map_values(.name) | select(index("Chris Olah") or index("Shan Carter")) | length' build/afterPostData.json | wc -l` // 22
[2] `jq '.posts[].authors | map_values(.name) | select(index("Chris Olah") == 0 or index("Shan Carter") == 0) | length' build/afterPostData.json | wc -l` // 10
[3] `jq '.posts[].authors | map_values(.name) | select(index("Chris Olah") or index("Shan Carter") | not) | length' build/afterPostData.json | wc -l` // 27, but includes one editorial update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment