Help for this page

Select Code to Download


  1. or download this
    %  perl -ne '$sum += /pattern/}{print $sum,$/' file1 file2 file3
    
  2. or download this
    % perl -lpe '$\+=/pattern/}{$\.=$/' file1 file2 file3