Subject: Re: tail follow multiple files?
To: None <tech-userlevel@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-userlevel
Date: 07/04/2005 01:17:32
> Since tail only processes a single file at a time, tail -f on multple
> files just doesn't make sense.
That's funny; it makes sense to me - and, apparently, a bunch of other
people....
> If you want the merged output from many files just run multiple
> copies of tail -f in the background....
...and then how to suspend them all, and resume them all, together?
I suppose sh -c '(for f in file1 file2 file3; do echo tail -f "$f &";
done; echo wait) | sh' works, after a fashion. But that doesn't ID the
file -f-generated output belongs to.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B