Rodolfo Bandeira

Rodolfo Bandeira

software, electronics, security, devops, thoughts

How to count how many lines of code?

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

Last modified: