title: File pattern to use for fetching files from FTP Server in Unix
body: <p>I've an issue with file name pattern to be provided in order to fetch the pattern file from the FTP server.</p>
  
  <p>Currently, I am using <code>ABC_YYYYMMDD*.sha1</code> as the pattern to fetch files. It fetches the last file using the above pattern. Sometimes, .gz.sha1 comes later and sometimes, the other one.</p>
  
  <pre><code>ABC_20160801060000.sha1
  ABC_20160801060000.txt.gz.sha1
  </code></pre>
  
  <p>I would need to provide the file name pattern in such a way that the file should always pick <code>ABC_YYYYMMDDHHMISS.sha1</code> only.</p>
  
  <p>Need a fool proof pattern which matches the required one only?</p>