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]

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

7 Alternatives + Submit Alt

What Others Think
NelsonFAnderson · 32 weeks ago
google hwjgvdyweud
NelsonFAnderson · 32 weeks 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 · 31 weeks and 4 days ago
an interesting article thanks for sharing
monaa · 29 weeks and 1 day ago
thanks for the post ThopTV Apk
monaa · 29 weeks and 1 day ago
Originally Answered: In file.log each line begins with [YYYY-MM-DD HH:MM:SS:MSMSMS] What command could be used to give me back the lines N-1, N and N+1 with a time difference greater than X seconds between N and N+1? Cheap Dissertation Help UK
hreeyjone · 25 weeks and 6 days ago
I don't know what to say really what you share is so good and helpful to the community, I feel that it makes our community much more developed, thanks. paper io 2
pikachu88 · 25 weeks and 3 days ago
I had trouble doing my essay. But what a luck, I’ve found this free paper base. I’ve read so many samples of assignments there, and it helped me to create my own one.
GraceJordan · 17 weeks and 4 days ago
I must say, that is a great coding technique to maintain the database. I'm a programmer and software developer in-the-making and I've had my fair share of experience with maintaining a database at a company that had a Paying for Essays Online app accessible to students on the internet. But I'm still on the journey of learning and I'm keen to practice more and further polish my skills!
MichaelVettori · 13 weeks ago
cleaning companies
saeed20 · 13 weeks ago
great content! will recommend this site to my friends
looneyhans · 6 weeks and 1 day ago
thanks again for this
looneyhans · 1 week and 4 days ago
lovely thanks!
Killersmile · 1 week 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? 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.


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: