title: Pattern matching in bash with tuple-like arguments
body: <p>I want to pass a variable number of 'tuples' as arguments into a bash script and go through them in a loop using pattern matching, something like this:  </p>
  
  <pre><code>for *,* in "$@"; do
      #do something with first part of tuple
      #do something with second part of tuple
  done
  </code></pre>
  
  <p>is this possible? If so, how do I access each part of the tuple?</p>
  
  <p>For example I would like to call my script like:</p>
  
  <p><code>bash bashscript.sh first_file.xls,1 second_file,2 third_file,2 ... nth_file,1</code></p>