Skip to content

Instantly share code, notes, and snippets.

@stewSquared
Created December 14, 2021 21:23
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 stewSquared/e0956b6378bd5d2d1b231aededb47e5c to your computer and use it in GitHub Desktop.
Save stewSquared/e0956b6378bd5d2d1b231aededb47e5c to your computer and use it in GitHub Desktop.
for DAY in {1..25}; do echo "Day $DAY:"; jq -r --arg day $DAY '.members | .[] | (.completion_day_level | select(has($day)) | .[$day] | .[] | .get_star_ts | tostring | strptime("%s") | (((strftime("%d") | tonumber) - ($day | tonumber) | . * 24) + (strftime("%H") | tonumber) | tostring) + strftime(":%M:%S - ")) + .name' 94105.json | sort -h; done | less #aoc-splits
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment