#!/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 doing welcome() { clear printf "Welcome To The lsHTML generator\n" printf "Written by hipodilski ver 1.0\n" echo '=---------------------------=' printf "This Script Generates Plain HTML With Getting And Adding Links from Dedicated Directory or Getting And Adding Links Written in txt File\n" printf "\n\n\n\n" printf "Enter Desired Dir Or Leave it Blank If You want to add links from file\n" printf "Enter Desired Dir:" read desdir a=0 b=1 c=0 somechecks } somechecks() { if [ "$desdir" == "" ]; then printf "OK Enter Desired File To add links From\n" echo printf "Enter Filename:" read desfilen if [ "$desfilen" == "" ]; then echo "Empty String Entered.." sleep 2 welcome fi if test -e $desfilen then echo else echo "File Does Not Exist" exit fi fi printf "Be Carefull never ever write name of currently existing and non\n" printf "Empty file!!!!! You Are Warned\n" echo printf "Enter Output HTML Name:" read deshtml printf "Enter Desired Colors For Links:" read descolor printf "Enter The Name Of The Main HTML:" read back } # simple commands simplicity() { cd $desdir #touch $desdir/$desfilen #ls * > $desfilen miniloop=`wc -l $desdir/$desfilen | awk '{ print $1 }'` } # This Generates Links In the HTML ahrefs() { printf "Generating:" #echo "