Skip to content

Instantly share code, notes, and snippets.

@andylshort
Created March 23, 2018 22:26
Show Gist options
  • Save andylshort/4937727538673d6cface8c322edc56f5 to your computer and use it in GitHub Desktop.
Save andylshort/4937727538673d6cface8c322edc56f5 to your computer and use it in GitHub Desktop.
Downloads all publically available, free books offered by O'Reilly
#!/bin/bash
wget -O- http://www.oreilly.com/programming/free/ | tr '"' \\n | grep http | grep free | cut -d "?" -f1 | sed 's/free/free\/files/' | sed 's/\.csp/\.pdf/' | xargs wget -P ebook
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment