Monthly Archives: September 2012

log sampling

A little Perl snippet for sampling a log file (or whatever): grep something myfile | perl -n -e ‘print if $. % 12 == 1;’