title: How to read arguments from bash
body: <p>I am curious as to how to pass in arguments via terminal to the bash script and read them and process the script functions based on the arguments.</p>
  
  <p>So if I did something like:</p>
  
  <pre><code>./scriptname.sh install
  #or
  ./scriptname.sh assets install
  </code></pre>
  
  <p>How would I say, ok the first argument installs something, while the second sais to do something else based on the first argument.</p>