http://qs1969.pair.com?node_id=1074011


in reply to Re^2: How to clear named pipe to just have one line
in thread How to clear named pipe to just have one line

Modify P1 to not produce redundant data, or add a filtering script in the middle that produces only non-redundant data, so P1 | filter | P2.