a | b/examples/mitdb/download.sh | ||
---|---|---|---|
1 | #!/bin/bash |
||
2 | # For more info about the data visit |
||
3 | # https://physionet.org/physiobank/database/mitdb/ |
||
4 | # and |
||
5 | # https://physionet.org/physiobank/database/html/mitdbdir/mitdbdir.htm |
||
6 | |||
7 | path=$1 |
||
8 | mkdir $path |
||
9 | cd $path |
||
10 | url=https://physionet.org/physiobank/database/mitdb/ |
||
11 | for i in {100..234} |
||
12 | do |
||
13 | for ext in 'hea' 'dat' 'atr' |
||
14 | do |
||
15 | wget $url/$i.$ext |
||
16 | done |
||
17 | done |