I have PubMed IDs for files I need to download from the PubMed site in .pdf format. I tried this script:#!/usr/bin/env bashLink=http://www.ncbi.nlm.nih.gov/pubmed/ID=(10021369         10051005100510071005621006466810071185)for f in ${ID[]};do   wget  --user-agent=Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 \         -l1 --no-parent -A.pdf ${Link}${f}/pdf/ -O ${f}.pdfdoneThis gives me PDF files, but I can't open any of them. What am I doing wrong?
How do I download PDFs from PubMed, given their IDs?
shell script;download;web