Skip to content

Instantly share code, notes, and snippets.

@dpetersen
Created July 16, 2011 04:04
Show Gist options
  • Save dpetersen/1085990 to your computer and use it in GitHub Desktop.
Save dpetersen/1085990 to your computer and use it in GitHub Desktop.
Number of words added to a file since last commit
expr `cat file.txt | wc -w` - `git show HEAD:file.txt | wc -w`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment