Line Counts by Command Line Posted on July 4, 2015 by shogarth — Leave a reply For line counting in c/cpp/h source files: [md] find . -name ‘*.[c|h]’ -o -name ‘*.cpp’ | xargs wc -l [/md]