in reply to perl onliner on multiple files
% perl -lne'/(\d+): /and$c+=$1;eof&&print"SUM.$ARGV =$c"' tmp_*
In Section
Seekers of Perl Wisdom
in reply to perl onliner on multiple files
% perl -lne'/(\d+): /and$c+=$1;eof&&print"SUM.$ARGV =$c"' tmp_*