How Many Lines of Code?
I was curious how many lines of code were in PHPBB 3. I only wanted to know about the .php files.
find . -name ‘*.php’ -exec wc -l {} ; | awk ‘{ SUM += $1 } END {print SUM}’
The downside to this is that it includes whitespace and braces as lines, as well as comments. Oh well. It’s a good approximation.
Edit: There are 172,189 lines of code in phpbb3.
If you found this post helpful, please consider sharing to your network. I'm also available to help you be successful with your distributed systems! Please reach out if you're interested in working with me, and I'll be happy to schedule a free one-hour consultation.