3 ms·
Wow, I've been using -f and getting (extremely rarely) frustrated if the file rotates. I need to read more man pages, thank you!
by nik_0_0 5y 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!
- touisteur 5y agoI 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...
- hunter2_ 5y agohttps://unix.stackexchange.com/questions/39729/monitor-files-%C3%A0-la-tail-f-in-an-entire-directory-even-new-ones https://unix.stackexchange.com/questions/39729/monitor-files...
- touisteur 5y agoI... Thanks! I wish I could upvote this 10 million times.
- tstack 5y agoThe Logfile Navigator (https://lnav.org https://lnav.org) supports glob patterns and does what you want by default: https://docs.lnav.org/en/latest/usage.html#viewing-files https://docs.lnav.org/en/latest/usage.html#viewing-files So, you would just run it like so: $ lnav 'mylog.*'