title: unix ftp script to get latest file from server
body: <p>I have a unix script to get files via ftp looks something like this: </p>
  
  <pre><code>#!/bin/sh
  HOST='1.1.1.1'
  USER='user'
  PASSWD='pass'
  FILE='1234'
  
  ftp -n $HOST &lt;&lt;END_SCRIPT
  quote USER $USER
  quote PASS $PASSWD
  cd .LogbookPlus
  get $FILE
  quit
  END_SCRIPT
  exit 0
  </code></pre>
  
  <p>Instead of getting a specific file, I want to get the last modified file in a folder, or all files created in the last 24 hours.  Is this possible via ftp?</p>