Want to show files on web page

hello Unix guru

i want to show performance results on my internal website .
We are manitaing the site through Wiki . I have to add new page in that .

can someone help me to write shell script for that ..

i want to display files datewise .
my files names are starting with date .

if someone click on the date it should open the results file ..

I am generating files datewise and somefiles ending with 2005-01-05-weekly .
i want to seprate those files display in other place
2005-01-01
2005-01-02
2005-01-03

i want to show the 2 dates in one line
2005-01-01 2005-01-01
2004-01-03 2005-01-04

Weekly
2005-01-05-weekly 2005-01-12-weekly
if someone will clike on 2005-01-01 it should open the results of that file .

pls can some help me to write shell script and calling inside that html file

pls do help me
thanks

pls help me waiting for reply ...

Pls can someone help me to write shell script :frowning:

Here is a starter script for you... It will generate a sample html web page

You will have to work out the details for further enhancements/improvements...

#! /bin/ksh

:<<HTML_SAMPLE_TAGS
<HTML>
  <HEAD> 
    <HTML>Sample 1</TITLE>
<BODY>
  <P>Some text goes here</P>
<A href="a link which is relative to this html">text which points to tthe above hreflink</A>
</BODY>
    </HTML>
HTML_SAMPLE_TAGS


PAGE="/path/to/the final/html/file"

function header {
echo "<HTML>
  <HEAD>
    <HTML>"$@"</TITLE>" > "$PAGE"
}

function body {
echo "<BODY>
  <P>"$@"</P>" >> "$PAGE"
}

function hreflink {
echo "<A href=\""$@"\">" >> "$PAGE"
}

function hreftext {
echo "$@</A>" >> "$PAGE"
echo "
">> "$PAGE"

}

function close {
echo "</BODY>
    </HTML>" >> "$PAGE"
}
header "Sample 1"
body "Some text goes here"
hreflink "a link which is relative to this html"
hreftext "text which points to tthe above hreflink"
hreflink "another link which is relative to this html"
hreftext "some other text for the new link"
close

All the links will go into hreflink, the corresponding text into hreftext.

Vino