bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#21908: find -f breaks pipes ?


From: Pádraig Brady
Subject: bug#21908: find -f breaks pipes ?
Date: Fri, 13 Nov 2015 17:17:14 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

tag 21908 notabug
close 21908
stop

On 13/11/15 14:20, Flemming Gulager Danielsen wrote:
> Hi Guyz!
> 
> I am new here so if this is not the proper use of the maillist then I am 
> sorry. I normally think I know my way around shells, but this I cant get the 
> below to work. And I am wondering if it is a bug I need to report on tail 
> util.
> 
> I run this command on a file.
> 
> tail -f testfile | tr -d H | grep e
> 
> while I in another shell
> 
> echo “Testing” >> testfile.
> 
> If leave out “| grep e” I get the output. I have tried with xargs echo {} 
> also, but I get nothing if I go beond 2 pipes. It works fine if I go through 
> a while read loop.

The data is buffered as detailed at:
http://www.pixelbeat.org/programming/stdio_buffering/

You can change the buffering with stdbuf. For e.g.:

  tail -f testfile | stdbuf -oL tr -d H | grep e

cheers,
Pádraig.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]