Como combinar esses objetivos?

1

Eu quero baixar muitos tipos de arquivos .dat, .hea, ... Não encontrei nenhuma evidência para a estrutura -A ".dat|.hea" . Comandos

wget -r -l1 --no-parent -A ".dat" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".hea" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".hea-" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".hea--" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".xws" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".atr" https://www.physionet.org/physiobank/database/nsrdb/
wget -r -l1 --no-parent -A ".atr-" https://www.physionet.org/physiobank/database/nsrdb/

Debian: 8.5
Wget: GNU Wget 1.16 construído em linux-gnu

    
por Léo Léopold Hertz 준영 01.11.2016 / 16:30

1 resposta

2

As opções -A e -R usam uma lista separada por vírgulas.

por exemplo.

wget -r -R -l1 --no-parent -A ".dat,.haa,.hea-,.hea--,.xws,.atr,.atr-" https://www.physionet.org/physiobank/database/nsrdb/

Da página do manual

-A acclist --accept acclist

-R rejlist --reject rejlist

Specify comma-separated lists of file name suffixes or patterns to accept or reject. Note that if any of the wildcard characters, *, ?, [ or ], appear in an element of acclist or rejlist, it will be treated as a pattern, rather than a suffix.

    
por 01.11.2016 / 16:34

Tags