home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
back2roots/filegate
/
filegate.zip
/
filegate
/
gamesnet
/
g_info
/
dir2html.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2014-05-19
|
1KB
|
34 lines
#!/bin/sh
# Generate hypertext menu from directory list
here='Gamesnet: Info '
echo "<HTML>"
echo "<HEAD>"
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=koi-8r\">"
echo "<TITLE>$here</TITLE>"
echo "</HEAD>"
echo "<BODY BGCOLOR=\"#ffffff\"><a href=\"http://filegate.net/\">FileGate Archive</a>"
echo "<HR>"
echo "<h3><a name=_$here_>/$here/</a></h3>"
ls -1B > ziplist
echo "<TABLE width=\75%\" cellpadding=3 cellspacing=3 cols=2 border=2 align=left tr>"
echo "<td width=200><strong>File</strong></td><td><strong><pre> File name Date kB Dlds Description</pre></strong></td><tr>"
#
for file in `cat ziplist`
do
if
test=`grep $file descript.ion`
then
build=`grep -w $file /home/bbs/files.txt`
echo "<td font face=\"arial\" size=\"2\"><A href=\"$file\">$file</a></td></font> <td font face=\"arial\" size=\"2\"><pre> $build </pre> </font></td><tr>"
echo "<tr>"
fi
done
echo "<tr>"
echo "<A HREF=\"../../\" target=\"_top\">Back to FileGate Archive</A><br>"
echo "<A HREF=\"../\">Back to Gamesnet directory list</a><br>"
echo "(c)<A HREF=\"mailto:janis@filegate.net\"> Send mail to Janis</A><br>"
echo "</Table>"
echo "</BODY>"
echo "</HTML>"