Created
May 23, 2017 02:04
-
-
Save cmattoon/ac1d71d412aa3d1acbf9e67cfcf0a993 to your computer and use it in GitHub Desktop.
Python SLOC
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
#!/bin/bash | |
# pip install metrics | |
find . -name '*.py' \| | |
xargs metrics -q --format csv -f \| | |
cut -d',' -f 6 \| | |
tail -n +4 \| | |
paste -sd+ - \| | |
sed s'/.$//' \| | |
bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment