Wednesday, May 8, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 4196  / 2 Years ago, wed, june 29, 2022, 6:03:46

How can I specify the directory that wget should download all files to? To get an idea I'm currently running the script:



wget -r --no-parent --reject "index.html*" http://water.weather.gov/precip/p_download_new/2010/01/01/


The problem is the files are stored in water.weather.gov/precip/p_download_new/2010/01/01/ , I'd like to store all files into just 2010/01/01 , how can I specify this?


More From » command-line

 Answers
1

you can use it likfe that



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/

[#19585] Thursday, June 30, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amelican

Total Points: 162
Total Questions: 116
Total Answers: 108

Location: Guam
Member since Mon, May 29, 2023
1 Year ago
;