#!/bin/bash
cd photoappend/
l=$(ls)
i=0
echo "\\section{Photos im Anhang}"
for s in $l
do
if [ $i == 25 ]
then
echo "\\section{Photos im Anhang}"
i=0
fi
echo "\\includegraphis [width=\\textwidth]{./photoappend/$s}"
echo
i=$(($i+1))
done
cd ..