diff options
author | Nick White <hg@njw.me.uk> | 2011-08-07 14:21:47 +0100 |
---|---|---|
committer | Nick White <hg@njw.me.uk> | 2011-08-07 14:21:47 +0100 |
commit | ff292deb12c9def19ec3b9d624bc29f396eb2726 (patch) | |
tree | 936aab50557453accb03cd83e102f83b66739b04 /getgfailed.sh | |
parent | 101687cd7a85cb83dea95386ee6cdd6259c726c1 (diff) |
Update documentation, including add README
Diffstat (limited to 'getgfailed.sh')
-rwxr-xr-x | getgfailed.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/getgfailed.sh b/getgfailed.sh new file mode 100755 index 0000000..9ecd9e3 --- /dev/null +++ b/getgfailed.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# See COPYING file for copyright and license details. +# +# Tries to download each page listed in a fail log (from a +# previous run of getgbook -a bookid > faillog) + +test $# -ne 2 && echo "usage: $0 bookid faillog" && exit + +sort < $2 | sort | shuf | head -n 5 | while read i +do + code=`echo $i|awk '{print $1}'` + echo $code | getgbook $1 +done |