Skip to content

Instantly share code, notes, and snippets.

@jmandel
Created June 15, 2015 15: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 jmandel/5c0f7119f5d0bea437bc to your computer and use it in GitHub Desktop.
Save jmandel/5c0f7119f5d0bea437bc to your computer and use it in GitHub Desktop.
FHIR Resource Counts
for rev in `git rev-list --reverse --all`;
do
git checkout $rev;
COUNT=$(cat trunk/source/fhir.ini trunk/build/source/fhir.ini | awk '/^\s*$/{flag=0}flag && /=/;/\[resources\]/{flag=1}' | wc -l);
DATE=$(git log -1 --date=iso --format=%ai .);
echo "$DATE $COUNT" >> /tmp/fhir_counts;
echo "$DATE $COUNT";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment