fix pipe cmd output