rm -f index.html
#
echo "">.tmp1.txt
echo " ">>.tmp1.txt
ls -ltF | awk 'length >30 {printf("\n
\n| %s | %s %s %s | %12d Bytes | \n
\n",$9,$9,$6,$7,$8,$5); }'>>.tmp1.txt
sed s/\*//g .tmp1.txt > .tmp2.txt
sed s/@//g .tmp2.txt > .tmp.txt
cat << EOFF > index.html
index of directory
index of directory
EOFF
cat .tmp.txt >> index.html
#
cat << EOFF >> index.html
automatically generated by awk and sed
EOFF
rm -f .tmp.txt .tmp1.txt
#ls -ltF | awk '1 == 1 {printf("\n\n| %s | %12d Bytes | %s %s %s | \n
\n",$9,$9,$5,$6,$7,$8); }'