Skip to content

Instantly share code, notes, and snippets.

@wteuber
Created August 14, 2024 18:24
Show Gist options
  • Save wteuber/4528722d4ad3b910d25adca208934323 to your computer and use it in GitHub Desktop.
Save wteuber/4528722d4ad3b910d25adca208934323 to your computer and use it in GitHub Desktop.
number of words in git repo
git ls-files | xargs wc -w 2> /dev/null | ruby -e "puts ARGF.map{_1.scan(/^\s*(\d+)/)[0][0].to_i}.inject(&:+)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment