Diff of /pubmed/download_pubmed.sh [000000] .. [2d4573]

Switch to unified view

a b/pubmed/download_pubmed.sh
1
#!/bin/bash
2
XML_DIR=xml
3
# Delete it if it exists
4
[ -d $XML_DIR ] && rm -r $XML_DIR
5
mkdir $XML_DIR
6
cd $XML_DIR
7
8
mkdir papersA-B
9
cd papersA-B
10
wget ftp://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_bulk/non_comm_use.A-B.xml.tar.gz
11
tar -xf non_comm_use.A-B.xml.tar.gz
12
rm non_comm_use.A-B.xml.tar.gz
13
cd ..
14
15
mkdir papersC-H
16
cd papersC-H
17
wget ftp://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_bulk/non_comm_use.C-H.xml.tar.gz
18
tar -xf non_comm_use.C-H.xml.tar.gz
19
rm non_comm_use.C-H.xml.tar.gz
20
cd ..
21
22
mkdir papersI-N
23
cd papersI-N
24
wget ftp://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_bulk/non_comm_use.I-N.xml.tar.gz
25
tar -xf non_comm_use.I-N.xml.tar.gz
26
rm non_comm_use.I-N.xml.tar.gz
27
cd ..
28
29
mkdir papersO-Z
30
cd papersO-Z
31
wget ftp://ftp.ncbi.nlm.nih.gov/pub/pmc/oa_bulk/non_comm_use.O-Z.xml.tar.gz
32
tar -xf non_comm_use.O-Z.xml.tar.gz
33
rm non_comm_use.O-Z.xml.tar.gz