#!/usr/bin/perl my $infile = shift @ARGV; map { s/\.[0-9]$//; $pages{$_} = 1; } @ARGV; open(I,$infile); $first = 1; print " Net-SNMP manual pages

Other Net-SNMP Documantion

"; while () { if (/^#\s*(.*)/) { print "\n" if (!$first); print "

$1

\n