#!/usr/bin/env sh INPUT=/usr/share/nginx/html/ OUTPUT=/usr/share/nginx/html/index.html HTML_TOP=$(cat << EOF Code#0 documentation Page updated every 5 minutes. EOF ) echo $HTML_TOP > $OUTPUT cd $INPUT for d in */ ; do echo "
  • "$d"
  • " >> $OUTPUT done echo $HTML_BOTTOM >> $OUTPUT