Transform preformatted .txt to .html
for i in *.txt
do
sed $'s/\\&/\\&amp;/g\ns/</\\&lt;/g\ns/>/\\&gt;/g' $i|cat 
html-prologue.txt - html-epilogue.txt>../html/${i%.txt}.html
done

PS1="\e[1;31m.\]\e[m\]"
60 columns by 15 rows

For Compiling C++ code on OS X El Capitan
alias cpp='clang++ -std=c++11 -stdlib=libc++'

Fold .txt at space between words and transform into .html
for i in *.txt
do
sed $'s/\\&/\\&amp;/g\ns/</\\&lt;/g\ns/>/\\&gt;/g' $i|cat 
html-prologue.txt - html-epilogue.txt|fold -s>../html/${i%.txt}.html
done