#!/bin/bash
clear
printf "\t\t--||HTML Bash Generator by hipopodilski||--\n\t"
printf "\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
printf "\n\n\n"
n=0
z=1
h=0
OK="OK"
commands()
{
echo
printf "\t\tAvailable Commands are:\n"
printf "\t\t-----------------------\n"
echo '+________________________________________________________________+'
echo '|BR=(next line), LINK=(a href to name), P=(new paragraph) |'
echo '|HR=(print line), H1, H2, H3, H4, H5, H6=(headers (1..6)) |'
echo '|H1, H2, H3, H4, H5, H6-=headers (1..6), FS=font size(1..7) |'
echo '|FC=(font color), BODY=(body of the page),LYNX=(view with lynx) |'
echo '|TITLE=(title of the page),CLS=(clear screen) |'
echo '|HTML=(Begin Of The HTML), ENDHTML=(End Of The HTML) |'
echo '|ENDBODY=(End Of HTMLs Body),ENDFONT=(End Of Used Font) |'
echo '\_______________________________________________________________/'
echo ;
echo '-=To Quit type EXIT or Press Ctrl-C=-'
}
commands
trap inter INT
inter()
{
clear
#printf "\n\n"
#printf "\aHope You-ve enjoyed .. see www.pcfreak.cc for more stuff.."
#printf "And Stay Free"
bigfunc
exit 0
}
#Works Up To here
filename()
{
echo
echo 'File Name To Generato for Example blabla.html or blabla.htm'
echo -n 'Enter file name:'
read filen
touch $filen
cat /dev/null > $filen
}
filename
bigfunc()
{
while [ "$h" -lt "$z" ]; do
echo -n 'Command:'
read command
#Works Up To Here
case $command in
BR) echo "
" >> $filen
echo $OK
;;
LINK)
echo -n 'Enter link to:'
read name
echo " $name " >> $filen
echo $OK
;;
P)
echo "
" >> $filen ;; HR) echo -n 'Enter width:' read width echo -n 'Enter height:' read height echo "