if I want to count the lines of code, the trivial thing iscat *.c *.h | wc -lBut what if I have several subdirectories?
Counting lines of code?
recursive;source code
The easiest way is to use the tool called cloc. Use it this way:cloc .That's it. :-)