Why no output is shown when using grep twice?

后端 未结 5 846
心在旅途
心在旅途 2020-12-02 16:46

Basically I\'m wondering why this doesn\'t output anything:

tail --follow=name file.txt | grep something | grep something_else 

You can ass

5条回答
  •  醉梦人生
    2020-12-02 17:31

    works for me on Mac without --follow=name

    bash-3.2$ tail delme.txt | grep po
    position.bin
    position.lrn
    bash-3.2$ tail delme.txt | grep po | grep lr
    position.lrn
    

提交回复
热议问题