perl -lne "$count+=split}{print $count" /path/file1 /path/file2