Last active
March 28, 2020 16:31
Grabs a PDF copy of all Azure docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for row in $(curl https://api.github.com/repositories/72685026/contents/articles | jq -c -r '.[] | select(.type | contains("dir")) | "\(.name)"'); do wget -O "${row}.pdf" "https://docs.microsoft.com/en-us/azure/opbuildpdf/${row}/toc.pdf?branch=live"; done |
Hello, might be daft question but can't work out where it's downloading pdf's too? The script is running but cannot see where on my pc it's downloading the pdf's. Using Windows laptop with Ubuntu 16.04 (Xenial)?
It should normally go to the directory you are currently in, which by default is your homedir /mnt/c/Users/username or c:\Users\username when you are using WSL.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will require jq to be installed. Tested on WSL with 16.04 Xenial.