title: shell script command to split string using a variable delimiter
body: <p>I want to split a string in a bash shell script with the following conditions.</p>
  
  <p>1) The delimiter is a variable</p>
  
  <p>2) The delimiter is multicharacater</p>
  
  <p>example:</p>
  
  <pre><code>A quick brown fox
  var=brown
  </code></pre>
  
  <p>I want to split the string into <code>A quick</code> and <code>brown fox</code> but using the variable <code>var</code> as delimiter and not <code>brown</code></p>