#!/bin/bash
#This Bash Script Will Generate HTML Taken From User Desired Dir
#Greetings TO all and Mainly Sepultura && Crematory the bands i
#listen to while writting this shit.
#This is Under The GNU's GPL License All Copyrights For Me hipodilski
# For More -===www.pcfreak.cc===-
# my mail:root@pcfreak.cc
#Welcome See by yourself what are this is doing
welcome()
{
printf "Enter Desired Dir:"
read desdir
printf "Be Carefull never ever write name of currently existing and non\n"
printf "Empty file!!!!! You Are Warned\n"
printf "Enter Output HTML Name:"
read deshtml
printf "Enter Desired Colors For Links:"
read descolor
a=0
b=1
c=0
}
# simple commands
simplicity()
{
cd $desdir
touch $desdir/$deshtml
ls * > something
miniloop=`wc -l $desdir/$deshtml | awk '{ print $1 }'`
}
# This Generates Links In the HTML
ahrefs()
{
for i in $miniloop; do
a=$(( $c + $b ))
name=`head -n $a $desdir/something`
echo " $name " >> $desdir/$deshtml
echo "
" >> $desdir/$deshtml
done
}
# This Prints The Main Of The Page
headers()
{
echo '' > $deshtml
echo '