Help with ksh script to list, then cp files from a user input date range

Hi,

I'm quite new to ksh scripting, can someone help me with this.

Requirements:

I need to create a script that list the files from a user input date range.
e. g. format of file:

*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-14-00*
*c1*log.2012-12-22-15-00*

, then copy the files to another server through ssh or sftp.

  1. user input the date range of files to search
  2. Search the files in live_dir and archive_dir
    ; inside the archive , are subdirectories in format of
    2012-Dec-18
    2012-Dec-19
    2012-Dec-20
    2012-Dec-21
    2012-Dec-22
  3. Once files are found, copy the files to another unix server through ssh or sftp

Thanks in advance

Choco

Bumping up posts or double posting is not permitted in these forums.

Please read the rules, which you agreed to when you registered, if you have not already done so.

You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future

Thank You.

The UNIX and Linux Forums.