title: How to split one string into multiple strings separated by at least one space in bash shell?
body: <p>I have a string containing many words with at least one space between each two. How can I split the string into individual words so I can loop through them?</p>
  
  <p>The string is passed as an argument. E.g. <code>${2} == "cat cat  file"</code>. How can I loop through it?</p>
  
  <p>Also, how can I check if a string contains spaces?</p>