Created
October 7, 2016 21:03
-
-
Save felixangell/621f47bb6546f26299ca1160ae34da36 to your computer and use it in GitHub Desktop.
Simple line count shell script.
This file contains 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
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
echo "Expected file extension to line count" | |
exit 1 | |
fi | |
echo "There are $(git ls-files | grep ".$1" | xargs cat | wc -l) lines of $1 code." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment