Counting Lines of Code in a Directory Recursively

4 years ago

Counting lines of code in Python files:

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

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