Rodolfo Bandeira
Home Blog Posts Photos Videos Github Contact
<< All Posts
How to count how many lines of code?

Aug 24, 2015


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



<< All Posts

Previous post:
Nice ZSH configuration for your Mac OS
Most recent post:
Fixing Git Error: git-remote-https.core on OpenBSD

rodolfo.io 🇧🇷 🇨🇦

Runs on OpenBSD 🐡
Twitter Github Linkedin RSS