Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am farproc on github.
  • I am tim_bateman (https://keybase.io/tim_bateman) on keybase.
  • I have a public key ASCpeQ_c6ZITX-C7FOevTMo5GFgjwbFT02Y3pqynDas8Pgo

To claim this, I am signing this object:

@farproc
farproc / download_all_lj.sh
Created January 3, 2013 18:25
Little bash script to download all the linux journal issues from a subscription.
#!/bin/bash
#
# warning: this isn't pretty or good in anyway, but it worked for me...
#
ACCOUNT="LJ123456"
# remember to URL encode the zip (%20 instead of space etc.)
ZIP="123456"
for u in `curl -vvv "http://download.linuxjournal.com/pdf/dljdownload.php?AN=${ACCOUNT}&ZP=${ZIP}" |grep a\ href | grep get\-doc | sed 's/^.*href\=\"//g' | sed 's/\".*$//g'`