tail -f with line numbers

Hiren Thacker
Oct 30, 2017 · 1 min read

Sometime you may want to observe your log file but with line numbers as well. I was sending sms to thousands of users and was logging the result to a log file so I wanted see the live tail of the log but I was also interested in knowing the number of users I have sent the sms. I found this nice solution on StackOverFlow less -N +F <filename>

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade