/ resources / composeBook_de.sh
composeBook_de.sh
 1  #!/bin/bash
 2  #echo "\begin{document}"
 3  cat ../translation/de/disclaimer.txt
 4  cat ../translation/de/README.md
 5  echo -e "\n"
 6  j=0
 7  for i in $(cat ../translation/de/index.txt)
 8  do
 9  j=$((j+1))
10  #echo -e "${j}. ${i}\n"
11  done
12  echo "\tableofcontents"
13  echo -e "\n"
14  mapfile -t title < "../translation/de/index.txt"
15  j=0
16  for i in $(cat ../index.txt)
17  do
18  j=$((j+1))
19  echo -e "# ${j}. ${title[j]}   \n   \n"
20  cat "../translation/de/${i}.txt"
21  echo -e "   \n"
22  done
23  #echo "Ende"