summaryrefslogtreecommitdiff
path: root/concat.sh
diff options
context:
space:
mode:
Diffstat (limited to 'concat.sh')
-rwxr-xr-xconcat.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/concat.sh b/concat.sh
index e9b203e..30e4f13 100755
--- a/concat.sh
+++ b/concat.sh
@@ -11,10 +11,11 @@ cat book-list | while read buch
do
echo "<biblebook bname=\"$buch\" bnumber=\"$j\">"
+ buchdir=$(echo "$buch" | sed "s/ /_/g")
i=1
- while [ -e "chapters/$buch/$i" ]
+ while [ -e "chapters/$buchdir/$i" ]
do
- cat "chapters/$buch/$i.xml" | sed 1d
+ cat "chapters/$buchdir/$i.xml" | sed 1d
i=$((i+1))
done