Apparently there's no equivalent to "/dev/stdout", so write using stdio to be able to output to stdout.
Now we can use the same code to do other utils...