title: Using sed to split a string with a delimiter
body: <p>I have a string in the following format:</p>
  
  <p><code>string1:string2:string3:string4:string5</code></p>
  
  <p>I'm trying to use <code>sed</code> to split the string on <code>:</code> and print each sub-string on a new line.  Here is what I'm doing:</p>
  
  <p><code>cat ~/Desktop/myfile.txt | sed s/:/\\n/</code> </p>
  
  <p>This prints:</p>
  
  <pre><code>string1
  string2:string3:string4:string5
  </code></pre>
  
  <p>How can I get it to split on each delimiter?</p>