title: Bash: How can I replace a string by new line in osx bash?
body: <p>I am googling it a lot. I only want that this line:</p>
  
  <pre><code>echo "Replace &lt;newLine&gt; it by &lt;newLine&gt; NEWLINE &lt;newLine&gt; in my OSX terminal &lt;newLine&gt; and bash script" | sed -e 's/&lt;newLine&gt;/\n/g'
  </code></pre>
  
  <p>works in my osx terminal and in my bash script. I can't use <code>sed</code> for this? Is there another one line solution?</p>