bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tailing files that match a certain pattern


From: Edward Peschko
Subject: tailing files that match a certain pattern
Date: Wed, 5 Aug 2009 22:42:34 -0700

All,

I was wondering how easy would it be to
alter tail so that it looks for new files that
match a certain pattern every few seconds
to tail?

I have an application where several temp
files are created, and I don't know what
they are in advance, eg:

/tmp/newlog.$$

would create /tmp/newlog.2432, etc.

which then could be tailed by

tail -f /tmp/newlog --pat

would tail all files that started with
/tmp/newlog..

Again, how easy would this be to
implement, or is it already implemented?

Thanks much,

Ed




reply via email to

[Prev in Thread] Current Thread [Next in Thread]