How do I have a variable in a bash script correspond to the url in wget
<p>For example, I have a bash script named <code>getimage</code>. In the script I have:</p>

<pre><code>wget http://www.example.com/images/1.jpg
</code></pre>

<p>If I type <code>bash getimage</code> in the terminal, it would download the picture.</p>

<p>But what I want is to type <code>bash getimage 2</code> or <code>bash getimage 3</code> and so on in the terminal and download <code>2.jpg</code> or <code>3.jpg</code> respectively. </p>

<p>Basically, I want to type a number in terminal (<code>bash getimage <i>number</i></code>) and have it correspond to <code>wget http://www.example.com/images/number.jpg</code>.</p>