title: Writing "Hello World" in Emacs?
body: <p>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 output to another command.  The <strong>print</strong> function places double quotes around the output strings so I get <strong>"Hello world!"</strong> instead of <strong>Hello world!</strong>.</p>
  
  <p>Here's the emacs script.</p>
  
  <pre>
  #!/usr/bin/emacs --script
  ;;
  ;; Run me from a Unix shell: ./hello.el > x.txt
  ;;
  (message "Hello world!  I'm writing to STDERR.")
  (print "Hello world!  I'm writing to STDOUT but I'm in quotes")
  (insert "Hello world!  I'm writing to an Emacs buffer")
  (write-file "y.txt")
  </pre>
  
  <p>And here's how I would like to call it.</p>
  
  <pre>
  hello.el > x.txt
  hello.el | wc
  </pre>