title: How to pass parameters to a Bash script?
body: <p>I have a bash script as below, and I want it to read two dates as parameters, for example: <code>myshell date1 date2</code>. How do I assign parameters to variables <code>date1</code> and <code>date2</code>?</p>
  <pre><code>sed &quot;s/$date1/$date2/g&quot; wlacd_stat.xml &gt;tmp.xml
  mv tmp.xml wlacd_stat.xml
  </code></pre>