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
you could use sed also for counting lines in place of wc:
find . -name '*.m' -exec sed -n '$=' {} \;
where '$=' is a "special variable" that keep the count of lines
'$='
EDIT
you could also try something like sloccount