summaryrefslogtreecommitdiff
path: root/list-chapters.sh
blob: 096498299bc03b31ae27660cc8ebd08e513a3c86 (plain)
1
2
3
4
5
6
7
8
9
10
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