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 · 54 weeks and 4 days ago
google hwjgvdyweud
NelsonFAnderson · 54 weeks and 4 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 · 54 weeks ago
an interesting article thanks for sharing
monaa · 51 weeks and 4 days ago
thanks for the post ThopTV Apk
monaa · 51 weeks and 4 days 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 · 48 weeks and 3 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 · 47 weeks and 6 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 · 40 weeks 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 · 35 weeks and 4 days ago
cleaning companies
saeed20 · 35 weeks and 4 days ago
great content! will recommend this site to my friends
looneyhans · 28 weeks and 4 days ago
thanks again for this
looneyhans · 24 weeks ago
lovely thanks!
Killersmile · 23 weeks and 4 days ago
Thank you for sharing this useful material. The information you have mentioned here will be useful. I would like to share with you all one useful source which might be interesting for you as well.
codyharper · 20 weeks and 1 day ago
cant wait to find this love, soo great! laser hair removal
idasanka · 19 weeks and 2 days ago
house cleaning spokane Wow! I did not know you can use it that way! This is interesting
yeoyeo · 17 weeks and 5 days ago
thank you for this! really appreciate you doing this pray
sammm · 14 weeks and 4 days ago
A very awesome blog post. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. FaceTime PC
Johnny457 · 8 weeks and 3 days ago
Good day, I haven't met anyone in real life for a long time. A quick check can be deceiving as the ladies look more identical. If you think the girls are perfect, a closer look reveals some inconsistencies in their thinking and how they deal with relationships. On the site portuguese girls, you can find the perfect bride who will be behind you like a wall!
Alexon02 · 6 weeks ago
I am insterested in that games as well. hearing aids pensacola
aegyjingoo · 5 weeks and 4 days ago
Tears came to my eyes as I realized what I had been a fool to judge Al as a failure. Arab Porn
joyoung · 4 weeks and 5 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? 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: