Hacker News new | ask | show | jobs
by nik_0_0 1805 days ago
Wow, I've been using -f and getting (extremely rarely) frustrated if the file rotates. I need to read more man pages, thank you!
1 comments

I wish tail had an -F -like option, to do globbing itself. When I want to tail any file following pattern mylog.*, including file created /after/ the tail command was started...
The Logfile Navigator (https://lnav.org) supports glob patterns and does what you want by default:

https://docs.lnav.org/en/latest/usage.html#viewing-files

So, you would just run it like so:

  $ lnav 'mylog.*'
I... Thanks! I wish I could upvote this 10 million times.