count lines in a file in c++ code example
Example: count number of lines files .cpp .h
# Show count sum
find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec cat {} + | wc -l
# Show count sum and stats for each file
find . -type f \( -name \*.cpp -o -name \*.h \) ! -name pugixml.cpp -exec wc -l {} +