Skip to content

Instantly share code, notes, and snippets.

@timmc
Last active March 16, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timmc/4a4711c15ff87b2735f2c74bc1efba4a to your computer and use it in GitHub Desktop.
Save timmc/4a4711c15ff87b2735f2c74bc1efba4a to your computer and use it in GitHub Desktop.
Download all CDC MMWR for 2017
for i in {01..42}; do curl -sS "https://www.cdc.gov/mmwr/volumes/66/wr/pdfs/mm66${i}.pdf" > "66_${i}.pdf" & done
for i in {43..50}; do curl -sS "https://www.cdc.gov/mmwr/volumes/66/wr/pdfs/mm66${i}-H.pdf" > "66_${i}.pdf" & done
curl -sS "https://www.cdc.gov/mmwr/volumes/66/wr/pdfs/mm665152-H.pdf" > "66_51_52.pdf"
Text extraction:
for x in ./*; do pdftotext $x $x.txt; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment