Realtime lines per second in a log file, with history

tail -f access.log | pv -l -i10 -r -f 2>&1 >/dev/null | tr /\\r \ \\n
This is similar to standard `pv`, but it retains the rate history instead of only showing the current rate. This is useful for spotting changes. To do this, -f is used to force pv to output, and stderr is redirected to stdout so that `tr` can swap the carriage returns for new lines. (doesn't work correctly is in zsh for some reason. Tail's output isn't redirected to /dev/null like it is in bash. anyone know why? ???????)
Sample Output
[2.00  s]
[2.00  s]
[4.20  s]
[20.4  s]
[8.20  s]
[11.6  s]
[2.02  s]
[13.9  s]
[7.19  s]
[5.00  s]
[2.00  s]
[16.4  s]
[10.8  s]

0
By: varenc
2020-04-19 02:07:40

7 Alternatives + Submit Alt

What Others Think

https://www.google.com/
NelsonFAnderson · 5 weeks and 2 days ago
google hwjgvdyweud
NelsonFAnderson · 5 weeks and 2 days ago
Thanks for the information your post brings. I see the novelty of your text, I will share it for everyone to read. I look forward to reading more articles from you. On movies Malayalam
OnmoviesApp · 4 weeks and 5 days ago
an interesting article thanks for sharing https://thoptvapp.com/
monaa · 2 weeks and 2 days ago
thanks for the post ThopTV Apk
monaa · 2 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: