title: Bash shell scripting command line parameters awk
body: <p>Lets say that my script name is test.sh. What i want to do is when I give the command</p>
  
  <pre><code>./tool.sh -f &lt;file&gt;
  </code></pre>
  
  <p>where file is a file of events(ex events.dat) to do something with awk and when i give the command</p>
  
  <pre><code>./tool.sh -f &lt;file&gt; -id
  </code></pre>
  
  <p>to do something else. How can I achieve that?</p>