Question

For HTML, CSS, and JavaScript files, what's a good tool to run on source directories and get KSLOC?

Was it helpful?

Solution

wc -l is a good start.

OTHER TIPS

grep -v -P "^\s*$" -R dir/ | wc -l 

Gives you a line count that ignores blank lines.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top