title: Korn shell get latest file matching pattern
body: <p>Need help to write a korn shell script for the below. </p>
  
  <p>Have to write the script in dir ..../script</p>
  
  <p>Have the below files in dir ..../files</p>
  
  <pre><code>Have 2 file patterns 
  xxx892_1.txt
  xxx367_8.txt
  xxx356_9.txt
  yyy736_9.txt
  yyy635_7.txt
  </code></pre>
  
  <p>Need to get the latest files(last created) matching pattern </p>
  
  <p>xxx and yyy i.e from above xxx356_9.txt, yyy635_7  and ftp them over. </p>
  
  <p>Please need help with this. Thanks.</p>