#!/bin/bash

echo "Please run in the directory which you want to create the html file. used the generated html file in public_html folder of your bhairav account"

echo "Enter file name to be created :  (Eg:EE123.html)"

read filename

touch $filename

chmod 755 $filename

files="<!DOCTYPE html>

<html>

<head>

<title>$filename</title>

</head>

<body>

<ul>"

for i in *;

do

	if [ "$i" != "$filename" ];

	then

		files="$files \n <li><a href='$i'> $i </a></li>"

	fi

done

files="$files \n </ul></body></html>"

echo $files>$filename


