Send grepped tail output to netcat
问题 I am trying to run the following command, and nothing is getting sent to netcat tail -F file.txt | grep test | nc host 9999 If I remove the grep, the tail successfully is followed and sent to netcat. If I just run the following, data comes back, so I know that data should be getting sent to the nc pipe: tail -F file.txt | grep test Any ideas? UPDATE I added the following to unbuffer the piped output and nothing goes through: tail -F file.txt | stdbuf -o0 grep test | nc host 9999 When I turn