title: Converting string to an array in bash with positional values
body: <p>I tried to look through a lot of similar questions but I have a specific query. I have two or more sets of strings (space separated values). I want to loop through</p>
  
  <pre><code>firstString="f1 f2 f3 f4"
  secondString="s1 s2 s3 s4"
  </code></pre>
  
  <p>I want something like </p>
  
  <pre><code>f1-s1
  f2-s2
  f3-s3
  f4-s4
  </code></pre>
  
  <p>(in a single loop)</p>
  
  <p>I must be able to take the positional value of the second and further arrays in a single loop.</p>