ArchiveJune 2018

Terminal – calculate number of lines of code in a directory


We had an interesting question, can we calculate how many lines of code we have written for an entire project? It turns out this isnt the easiest thing to calculate for a web-project, but we gave it a go. This is the best we have come up with so far for all code we have written to calculate the number of lines of code in all PHP, CSS, JS, HTML and HTM pages. ( find ./ -name '*.php' -print0 -o ...



Get in touch

I'm available on just about every social media platform out there as RMTWeb.