#!/bin/sh # makeindex.html by John Gotts . # This program is very fast because it only uses Bourne shell built-ins. A # lesson to would-be shell programmers? # Copyright 1997, John Gotts. # I hereby release this program under the GNU General Public License. Don't # sue me for it. for i in 1 2 3 4 5 6 7 8 9; do cd man$i echo "" > index.html echo "" >> index.html echo "" >> index.html echo "Linux Man Pages Section $i" >> index.html echo "" >> index.html echo "" >> index.html echo "
" >> index.html echo "

Linux Man Pages Section $i

" >> index.html echo "
" >> index.html for file in *.$i.html ; do IFS="." set $file IFS=" " echo "
  • $1.$2" >> index.html done echo "" >> index.html echo "" >> index.html cd .. done