Command line wget命令浏览具有不同父名称的名为X的目录
我正在使用以下命令:Command line wget命令浏览具有不同父名称的名为X的目录,command-line,wget,directory,windows-console,Command Line,Wget,Directory,Windows Console,我正在使用以下命令: wget --no-check-certificate -nd -r -l5 --no-parent -A "*revisions.txt" https://mysite.com/folder/test/product1/ 要获取包含“revisions.txt”但我的结构如下的所有文件: > https://mysite.com/folder/test/product1/xxx/final/ > https://mysite.com/folder/test/
wget --no-check-certificate -nd -r -l5 --no-parent -A "*revisions.txt" https://mysite.com/folder/test/product1/
要获取包含“revisions.txt”但我的结构如下的所有文件:
> https://mysite.com/folder/test/product1/xxx/final/
> https://mysite.com/folder/test/product1/yy/rc/
> https://mysite.com/folder/test/product1/yy/beta/
> https://mysite.com/folder/test/product2/zzz/final/
> https://mysite.com/folder/test/product2/yy/rc/
> https://mysite.com/folder/test/product2/xx/beta/
> https://mysite.com/folder/test/product2/xxx/alpha/
> https://mysite.com/folder/test/product2/zz/alpha/
。。。
我只想浏览目录“rc”和“final”。问题是,我有50多个产品,这个数字随着时间的推移而增加,所以这必须是“动态的”
如何仅浏览rc和final以从这两个目录获取所有revisions.txt?父目录可以有不同的名称。明白了
wget -P ./revisions/ --no-check-certificate -nd -r -l8 -A "*revisions.txt" --exclude-directories="*/BETA/*","*/ALPHA/*" --no-parent https://mysite.com/folder/test/