title: How to get value from command line using for loop
body: <p>Following is the code for extracting input from command line into bash script:</p>
  
  <pre><code>input=(*);
  for i in {1..5..1}
  do
      input[i]=$($i);
  done;
  </code></pre>
  
  <p>My question is: how to get $1, $2, $3, $4 values from input command line, where command line code input is:</p>
  
  <pre><code>bash script.sh "abc.txt" "|" "20" "yyyy-MM-dd"
  </code></pre>
  
  <p></p>
  
  <p>Note: <b>Not using</b> for i in "${@}"</p>