Created
September 14, 2012 23:33
-
-
Save jjjake/3725605 to your computer and use it in GitHub Desktop.
Download all Symlink Instruction files from a given list of identifiers.
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
#!/bin/bash | |
# Download all Symlink Instruction files from a given list of identifiers. | |
# Usage: ./get-symlinks.sh itemlist.txt | |
while read identifier | |
do | |
mkdir -p symlink_instructions | |
URL="http://archive.org/download/${identifier}/${identifier}_symlinks.txt" | |
COOK="Cookie: logged-in-sig=$LOGGED_IN_SIG; logged-in-user=$LOGGED_IN_USER" | |
wget -q "$URL" -O symlink_instructions/${identifier}_symlinks.txt \ | |
--header "$COOK" | |
done < $1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment