120 pts.
 Get File By Date on QSHELL
Hi

How can I find out the list of files that were created on the given date.

I am trying to use it in a scenario where I need to fetch files through ftp.

The folder from which I want to fetch the files will contain many files but I need only the files that were created today.

I am confused as to how can I write get command in order to get those files.

Thanks,

Vivek



Software/Hardware used:
ASKED: March 9, 2011  3:34 PM
UPDATED: March 10, 2011  1:18 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi Vivek,

I use the following command to remove files with more than 15 days old.

find /Path/ -ctime +15 -exec rm {} ;

I think that with “find” and -ctime +0 will list all files created today.

I’m not an expert on QSHELL but you can try it..

Regards,
Wilson

 2,385 pts.

 

I need to fetch files through ftp.

I’m not clear how you intend to mix QShell with “fetching” files with FTP. It would seem to make more sense if you were going to choose which files to PUT, but choosing which files to GET requires running code on the remote system which QShell isn’t particularly useful for.

Can you clarify the steps you have to go through?

Tom

 108,055 pts.