perl -lne'/(\d+): /and$c+=$1; eof&&print"SUM.$ARGV =$c"; if(eof) {$c=0 +}' tmp_1* [download]
In reply to Re^2: perl oneliner on multiple files by abhay180 in thread perl onliner on multiple files by abhay180