Created
March 18, 2020 13:02
-
-
Save mentix02/debc76e1e1595590f9fed18b7c33063f to your computer and use it in GitHub Desktop.
Counts the number of lines of code in a git project except the LICENSE and .gitignore file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python2 -c "print(`git ls-files | xargs wc -l | grep '\d total' | egrep -o -e '\d+'` - `wc -l LICENSE | egrep -oe '\d+'` - `wc -l .gitignore | egrep -oe '\d+'`)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment