I would like to write a few Unix scripts in Emacs Lisp. However, there doesn\'t seem to be a clean way to write to STDOUT so I can redirect the results to a file or pipe the ou
Seems like you want princ instead of print. So, basically:
princ
print
(princ "Hello world! I'm writing to STDOUT but I'm not in quotes!")
However, one caveat is that princ does not automatically terminate the output with \n.
\n