Skip to content

Instantly share code, notes, and snippets.

@danielnc
Created November 7, 2012 11:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielnc/4030943 to your computer and use it in GitHub Desktop.
Save danielnc/4030943 to your computer and use it in GitHub Desktop.
log lines per second
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