Counting Lines of Code in a Directory Recursively

há 4 anos

Counting lines of code in Python files:

find . -type f -name "*.py" -exec wc -l {} +

It's common to see the expression "lines of code" referenced as LOC.