I need to know how many lines of C code are in a source bundle. I have extracted the bundle and hence there is a big directory tree with C files everywhere.
So far I have something like:
find . -name ".c" | grep \ ./*/*/*/*/*/
obviously wrong, if someone could help me out that would be great thanks!
The solution in the previous post only prints the last total. However on Solaris it prints the "Total" for each sub directory as well. This is handy if you are recursing a deep directory tree.