title: Bash - one-liner echo with delimiter
body: <p>So my sample code so far looks like this:</p>
  
  <pre><code>#!/bin/bash
  
  mysampletxt="=======\nTest\n-------;----------\nDone Test\n=========="
  </code></pre>
  
  <p>I want to be able to echo it out to make it look like the following:</p>
  
  <pre><code>=======
  Test
  -------
  Some code goes here
  More code
  ----------
  Done Test
  ==========
  </code></pre>
  
  <p>But the problem is that when I tried using AWK, sed, or IFS they also use <code>\n</code> as delimiters which I don't want that to happen as the text gets all messed up. Is there anyway I can include <code>;</code> as the delimiter and ignore <code>\n</code>?</p>
  
  <p>I was looking at <a href="https://superuser.com/questions/98825/how-to-check-if-a-directory-exists-in-linux-command-line">this</a>. But unfortunately none of those solutions worked for me.</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>EDIT: For more clarification: I'm trying to do is split <code>mysampletxt</code> into two from the <code>;</code> character.. And be able to insert the first part of the split text one place and the second into another.</p>