#!/bin/sh
# Shell script grabs most recent complete index
# for Project Gutenberg.
# Assumes Mac OS X default install with curl available.
# Also assumes you have a copy of GUTINDEX.ALL in ~/Documents
# Feel free to move it around.
# GUTINDEX.ALL file updated weekly-ish.
##############################
# Cool ideas for extending this:
# cron the script so it happens automagically
# cron a grep on it to keep an eye out for fave authors or titles
cd ~/Documents
cp GUTINDEX.ALL GUTINDEX_LAST
cd /tmp
curl -O http://www.ibiblio.org/gutenberg/GUTINDEX.ALL
cp /tmp/GUTINDEX.ALL ~/Documents/GUTINDEX.ALL




