in reply to <> operation with pipes

You should add an exit statement in the end of the loop.