title: Split string by delimiter and print elements on new line
body: <p>I'm not replicating the behaviour of <a href="https://stackoverflow.com/a/18234407/1156245">this answer</a> on Mac.  I want split elements each on their own line.  Any idea?</p>
  
  <pre><code>$ echo "string1:string2:string3:string4:string5" | sed s/:/\\n/g
  string1nstring2nstring3nstring4nstring5
  </code></pre>