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.
- user input the date range of files to search
- 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 - Once files are found, copy the files to another unix server through ssh or sftp
Thanks in advance
Choco