How to 'grep' a continuous stream?

前端 未结 12 1557
清酒与你
清酒与你 2020-11-22 11:15

Is that possible to use grep on a continuous stream?

What I mean is sort of a tail -f command, but with grep on t

12条回答
  •  忘掉有多难
    2020-11-22 11:37

    I use the tail -f | grep all the time.

    It will wait till grep flushes, not till it finishes (I'm using Ubuntu).

提交回复
热议问题