You should add an exit statement in the end of the loop.
In reply to Re: <> operation with pipes by zwon in thread <> operation with pipes by seefurst