Created
November 7, 2012 11:23
-
-
Save danielnc/4030943 to your computer and use it in GitHub Desktop.
log lines per second
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tail -f file.log |perl -e 'while (<>) {$l++;if (time > $e) {$e=time;print "$l\n";$l=0}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment