Friday, July 22, 2016

wget – recursively download all files from certain directory listed by APpache or HTTP



wget – recursively download all files from certain directory listed by apache

Case: recursively download all the files that are in the ‘ddd’  folder for the url ‘http://festvox.org/cmu_indic/unpacked_all/;
Solution:
wget -r -np -nH –cut-dirs=3 -R index.html http://festvox.org/cmu_indic/unpacked_all/

Explanation:
It will download all files and subfolders in ddd directory:
recursively (-r),
not going to upper directories, like ccc/… (-np),
not saving files to hostname folder (-nH),
but to ddd by omitting first 3 folders aaa, bbb, ccc (–cut-dirs=3),
excluding index.html files (-R index.html)


No comments:

Post a Comment