diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-28 10:09:28 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-06-28 10:09:28 +0200 |
commit | 36c0f2f4d8aef72776a337eef05bec8cd0360e83 (patch) | |
tree | 0751342b278da2a5a67226b7450f046b50b279de /list-chapters.sh | |
download | bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.tar.gz bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.tar.bz2 bible-fetch-36c0f2f4d8aef72776a337eef05bec8cd0360e83.zip |
Add scripts to download elberfelder from die-bibel.de
That is download is shell scripts using curl, parse books
and chapters with sed. Then prepare html with sed to be converted
to zefania xml using a xsl stylesheet.
Diffstat (limited to 'list-chapters.sh')
-rwxr-xr-x | list-chapters.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/list-chapters.sh b/list-chapters.sh new file mode 100755 index 0000000..0964982 --- /dev/null +++ b/list-chapters.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +cat book-list | while read buch +do + i=1 + while [ -e "chapters/$buch/$i" ] + do + echo "chapters/$buch/$i" + i=$((i+1)) + done +done |