title: How can I pass a file argument to my bash script using a Terminal command in Linux?
body: <p>So my question is how can I pass a file argument to my bash script using a Terminal command in Linux?
  At the moment I'm trying to make a program in bash that can take a file argument from the Terminal and use it as a variable in my program. For example I run
  <code>myprogram --file=/path/to/file</code> in Terminal.</p>
  <h1>My Program</h1>
  <pre><code>#!/bin/bash    
  File=(the path from the argument)  
  externalprogram $File (other parameters)
  </code></pre>
  <p>How can I achieve this with my program?</p>