title: How to get part of the string in BASH
body: <p>My code</p>
  
  <pre><code>FOO="aaa;bbb;ccc"
  
  echo ${FOO##*;} # Result: ccc
  echo ${FOO%%;*} # Result: aaa
  </code></pre>
  
  <p>how to get "bbb" from var FOO?</p>
  
  <pre><code>echo ${FOO???*} # Result: bbb
  </code></pre>
  
  <p>thank you</p>