Skip to content

Instantly share code, notes, and snippets.

@MarkRose
Created May 2, 2012 15:19
Show Gist options
  • Save MarkRose/2577408 to your computer and use it in GitHub Desktop.
Save MarkRose/2577408 to your computer and use it in GitHub Desktop.
Count matching lines per second in a log file
# Use a command like this to watch the number of matching lines in a log file
tail -f logfile | grep whatever | pv -lr 2>&1 >/dev/null
@lyrl
Copy link

lyrl commented Jun 25, 2021

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment