#! /bin/sh # Generate hypertext menu from directory list echo "" echo "Information under: $*" echo "" echo "

$*

" # If there is a README file include that as plain text if [ -f $1/README ]; then sed -f txt2html.sed $1/README fi # Now generate a list of links to files echo "" for dir in $* do ( cd $dir for file in *.html *.txt do echo "
  • Title of $file" done ) done echo "
  • "