diff options
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 |