add -z flag to output to stdout instead of file