title: Sorting integers in Bash Shell Script with command line arguments as arguments to the sort fn?
body: <p>My problem is how can I iterate through the command line arguments if the number of allowed arguments is a variable:</p>
  
  <p>example:</p>
  
  <pre><code>./sort.sh n &lt;n integers to sort&gt;
  ./sort.sh 5 3 4 2 1 5
  </code></pre>
  
  <p>I tried iterating it through a for-loop and putting it in a .txt file for the sort function but that presents a problem since the delimiter, say i, accepts only constants.</p>
  
  <p>Thanks. :D</p>