Rodolfo Bandeira
← Archive
linux

How to count how many lines of code?

· 1 min read


You just finished a project and want to know how many lines of code you wrote? A kind of recursive search looking in all files and after all return the total.

find . -name '*.php' | xargs wc -l

find . -name '*.yml' | xargs wc -l

find . -name '*.twig' | xargs wc -l

Cheers! Rodolfo