title: Using sed in Alias with quotes and escape characters
body: <p>Ive got an alias to view my apache error log, which uses sed to format newline characters into newlines for better display. The following command works perfectly fine when entered via command line, but wont work as an alias. Every time I run this, I need to open my .profile, copy the contents of the alias, and paste it in command line.</p>
  
  <pre><code>tail -f /var/log/httpd/my-sandbox-error_log | sed -e 's/\\n/\n/g'
  </code></pre>
  
  <p>alias:</p>
  
  <pre><code>alias elog="tail -f /var/log/httpd/my-sandbox-error_log | sed -e 's/\\n/\n/g'"
  </code></pre>
  
  <p>Ive tried a number of approaches, have swapped the quotation characters, and experimented with escape characters a'plenty. It seems I can never get my alias to make use of the sed search/replace (error log is tailed, with no newline formatting). Im sure there is something trivial missing, to which I am naive. I am not a unix/linux expert. </p>
  
  <p>Can anyone enlighten me as to why this does not work as an alias?</p>