0

I need to download the most updated files with the name suite.

I am using windows server to run the command lines.

I wrote the following command but not sure of how to get the most updated one

wget -r --cut-dirs=2 --no-check-certificate --no-parent -A *suite*.zip https://myip/

The remote folders files are:

[   ]   file-client.win.RC1.4.140929.zip            29-Sep-2014 15:20   2.3G     
[   ]   file-client.11_3_1.win.RC1.140813.zip       13-Aug-2014 20:43   2.3G     
[   ]   file-nodb.11_3_1.win.RC1.1.140814.zip       14-Aug-2014 16:20   2.8G     
[   ]   file-nodb.11_3_1.win.RC1.2.140820.zip       20-Aug-2014 13:02   2.8G     
[   ]   file-nodb.11_3_1.win.RC1.140813.zip         13-Aug-2014 20:52   2.8G     
[   ]   file-suite.is_11_3_1.win.RC1.1.140814.zip   14-Aug-2014 16:03   5.6G     
[   ]   file-suite.is_11_3_1.win.RC1.2.140820.zip   20-Aug-2014 12:46   5.6G     
[   ]   file-suite.is_11_3_1.win.RC1.3.140917.zip   17-Sep-2014 18:23   5.6G     
[   ]   file-suite.is_11_3_1.win.RC1.140813.zip     13-Aug-2014 20:35   5.6G     
[   ]   file.11_3_1.win.RC1.1.140814.zip            14-Aug-2014 16:29   646M     
[   ]   file.11_3_1.win.RC1.2.140820.zip            20-Aug-2014 13:12   646M     
[   ]   file.11_3_1.win.RC1.140813.zip              13-Aug-2014 21:02   646M    
7
  • @DavidPostill Not really. The first one refers to the files being sorted by modification date - not my case and the second one refers to the same file being updated. In my case it's not going to be the same file. A new file
    – Dejel
    Commented Nov 9, 2014 at 11:58
  • 1
    You will need use techniques similar to those in @DavidPostill's link: retrieve the directory list to a local file, then perform some parsing and sorting on it, and thereby identify each file group and the latest revision in it. I won't pretend it's easy, because the file naming structure is complex, and probably not worth doing for a list that short: you are better off selecting each file manually.
    – AFH
    Commented Nov 9, 2014 at 12:16
  • what do you mean by the last sentence? I thought to go over the list and parse the date
    – Dejel
    Commented Nov 9, 2014 at 12:48
  • @DavidPostill maybe I am missing something about the -N usage.
    – Dejel
    Commented Nov 9, 2014 at 12:55

0

You must log in to answer this question.

Browse other questions tagged .