in reply to Re^3: Get specific entries from a file which is always growing
in thread Get specific entries from a file which is always growing

I haven't actually tried this, but I am told that "tail -f" calls fflush by default, so it avoids the buffering issue you describe.

grep's "--line_buffered" option is off by default, so these commands should not be "suffering from buffering".

I'm hoping some gurus with a deeper understanding of these issues will present the canonical way to resolve this, hopefully with a succinct explanation. I did try to RTFM on the Internet, but I guess my attention-span was insufficient to grok.

There is also an "unbuffer" command that could potentially help this situation. I Will try to RTFM at a more civilized hour.

            "XML is like violence: if it doesn't solve your problem, use more."

  • Comment on Re^4: Get specific entries from a file which is always growing