title: How to download latest file from remote repository using shell script?
body: <p>I have a remote repository which stores release builds. What I want to do is to write a shell script to download the latest build(a .zip file). The repository web page looks like this:</p>
  
  <pre><code>1.0.0
    |---&gt; 1.0.0.zip(link)
  
  1.0.1
    |---&gt; 1.0.1.zip(link)
  
  1.0.2
    |---&gt; 1.0.2.zip(link)
  </code></pre>
  
  <p>1.0.x is a directory, where a zip file resides in. There will be more than one or no build released everyday. Basically I want to construct a URL like</p>
  
  <p><a href="http://path/to/file/1.0.x.zip" rel="nofollow">http://path/to/file/1.0.x.zip</a></p>
  
  <p>With x being automatically aware of latest number on the web page, so that wget would be easy to use.</p>