finish grep over pipe