Skip to content

Instantly share code, notes, and snippets.

@ranieuwe
Last active March 28, 2020 16:31
Show Gist options
  • Save ranieuwe/6bd4d3bcf52a49a55493362310b854da to your computer and use it in GitHub Desktop.
Save ranieuwe/6bd4d3bcf52a49a55493362310b854da to your computer and use it in GitHub Desktop.
Grabs a PDF copy of all Azure docs
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
@ranieuwe
Copy link
Author

ranieuwe commented Mar 2, 2020

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