Come posso specificare la directory che wget
dovrebbe scaricare tutti i file su? Per avere un'idea, sto attualmente eseguendo lo script:
wget -r --no-parent --reject "index.html*" http://water.weather.gov/precip/p_download_new/2010/01/01/
Il problema è che i file sono archiviati in water.weather.gov/precip/p_download_new/2010/01/01/
, vorrei archiviare tutti i file solo in 2010/01/01
, come posso specificarlo?
Risposta accettata:
puoi usarlo così
wget -r --no-parent -P /path-to-"2010/01/01"-directory -nd --reject "index.html*" http://water.weather.gov/precip/p_download_new/2010/01/01/