Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have few pdf links from various websites. example:

www.example.com/excel/1.pdf

How I can wget that link so 1.pdf is downloaded in /example.com/excel/1/ directory. Can wget auto create the directory path without manually creating or defining that path in wget command?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
367 views
Welcome To Ask or Share your Answers For Others

1 Answer

Yes you can. You can with the switch O And do the desired address

wget -O /path/to/file.ext

Also by order curl Do the same Just instead O Great from O Use small. And in the end you have to repeat this operation for the rest in any way you can, for example if you have numerical naming and the numbers only increase, repeat the command with a simple or a loop


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...