title: Split a string on a word in Bash
body: <p>I wish to be able to split a string on a word. Essentially a multi-character delimiter.
  For example,  I have a string:</p>
  <p><code>test-server-domain-name.com</code></p>
  <p>I wish to keep everything before 'domain' so the output would be:</p>
  <p><code>test-server-</code></p>
  <p>Note: I cannot cut on the '-'. I have to be able to cut before the term 'domain' as the string's format will vary but 'domain' will always be present and I will always want to capture the elements before 'domain'.</p>
  <p>Is this possible in bash?</p>