#! /bin/sh #================================================================ # texttohtml # Escape meta character of HTML #================================================================ # print header cat <<__EOF
__EOF # print body cat $1 | sed -e 's/&/\&/g' -e 's/\</g' -e 's/>/\>/g' # print footer cat <<__EOF__EOF # exit normally exit 0 # END OF FILE