1 2 3 4 5
#!/bin/bash # this is really just a snippet to be copied when needed exec perl -e 'while (<>) {$l++;if (time > $e) {$e=time;print "$l\n";$l=0}}'