title: Bash: Split a string by delimiter ignoring spaces
body: <p>I have string like</p>
  
  <pre><code>name1::1.1.1.1::ps -ax
  </code></pre>
  
  <p>I want to split the string based on delimiter <code>::</code> using bash scripting.</p>
  
  <p>The desired output should be an array of 3 elements</p>
  
  <pre><code>("name1" "1.1.1.1" "ps -ax")
  </code></pre>
  
  <p>without double quotes</p>
  
  <p>I appreciate your help.</p>