Based on talk by James Powell - https://www.youtube.com/watch?v=mr2SE_drU5o
- cloc
- find -iname '.' | xargs cat |sed -e 's/^[ \t]//' | sort | uniq -c | sort -nr
- Python:
from subprocess import check_output
files = check_output('find -iname *.<type>'.split())\