I was trying to use sed to count all the lines based on a particular extension.
find -name \'*.m\' -exec wc -l {} \\; | sed ...
I was tryi
On modern GNU platforms wc and find take -print0 and -files0-from parameters that can be combined into a command that count lines in files with total at the end. Example:
find . -name '*.c' -type f -print0 | wc -l --files0-from=-