How to FTP fiels according to generated date

Hi,

I need to get some files from a server via ftp. normaly I use following scrip, it is worrking fine.

cd dir_name                      
ftp -v -n "10.76.170.17" << cmd   
user "rbi" "rbi"                  
cd recordreceive                  
prompt                            
mget b*.dat            
bye                               

Now I need to modify it to get files accodding to the generated date. Can some body give me an idea how should modify my script to do this.

Example:

I have files like this in my server(Windows) as follows,

-rwxrwxrwx 1 owner group 348734 Oct 09 2005 b00000505.dat
-rwxrwxrwx 1 owner group 348419 Oct 10 2005 b00000506.dat
-rwxrwxrwx 1 owner group 348765 Oct 11 2005 b00000507.dat
-rwxrwxrwx 1 owner group 350113 Oct 12 2005 b00000508.dat
-rwxrwxrwx 1 owner group 349624 Oct 12 2005 b00000509.dat
-rwxrwxrwx 1 owner group 349359 Oct 18 2005 b00000510.dat

How can I ftp(mget) files only generated on Oct 18 2005 ?

Waiting for answer soon

Thanks
Mahesh
:slight_smile: