#! /bin/sh #================================================================ # texttohtml # Escape meta character of HTML #================================================================ # print header cat <<__EOF Generated by texttohtml
__EOF


# print body
cat $1 | sed -e 's/&/\&/g' -e 's//\>/g'


# print footer
cat <<__EOF
__EOF # exit normally exit 0 # END OF FILE