Files
planica2018/day3/gallerygen.sh
2018-10-10 20:14:31 +02:00

18 lines
318 B
Bash
Executable File

#!/bin/sh
if [ -e imgindex.html ]; then
rm imgindex.html
fi
cat indexhead.html > imgindex.html
for i in *.png; do
echo "<img class=\"img-fluid\" src=\"${i}\"><hr>" >> imgindex.html
done
for i in *.jpg; do
echo "<img class=\"img-fluid\" src=\"${i}\"><hr>" >> imgindex.html
done
cat indextail.html >> imgindex.html