Skip navigation.
Home
Your source for Perl tips, howto's, faq and tutorials
( categories: )

Does anyboby understand what this is doing? cat filename | perl -ne 'print "$1\n" if /rule:\s(\d+)/'. I'm wanting to pull data from a file and calculate the number of individual instances of an item.