Skip to content

Instantly share code, notes, and snippets.

@RyanJarv
Created December 4, 2020 03:14
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 RyanJarv/addf4ee61f0d228642cad6b01049d113 to your computer and use it in GitHub Desktop.
Save RyanJarv/addf4ee61f0d228642cad6b01049d113 to your computer and use it in GitHub Desktop.
Get AWS service count by year (botocore)
for y in $(seq 0 8); do git checkout -q `git rev-list -1 --before="$(date -v-${y}y)" master`; git show --no-patch --no-notes --pretty="%as"|tr -d '\n'; { find -E botocore/data -type d -mindepth 1 -maxdepth 1 -not -path botocore/data/aws; find -E botocore/data/aws -type d -mindepth 1 -maxdepth 1; find -E botocore/data/aws -type file -regex '.*/[^/_]*.json' -mindepth 1 -maxdepth 1; } 2>/dev/null|wc -l; sleep 0.2 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment