diff options
Diffstat (limited to 'download-chapters.sh')
-rwxr-xr-x | download-chapters.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/download-chapters.sh b/download-chapters.sh new file mode 100755 index 0000000..ba29d8e --- /dev/null +++ b/download-chapters.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +mkdir -p chapters/ + +cat book-list | while read buch +do + mkdir -p "chapters/$buch" + ./parse-chapter.sed "books/$buch" | \ + while read url + do + read number + echo $url + + echo "$buch $number" + curl $url > "chapters/$buch/$number" + done +done |