#! /bin/sed -f s/&/\&/g s/</\</g s/>/\>/g 1 i\ <head>\ <title>\ Converted with txt2html.sed\ </title>\ </head>\ <body>\ <pre> $ a\ </pre>\ </body>\ </html> ### colorized by sedsed, a debugger and code formatter for sed scripts ### original script: http://sed.sf.net/grabbag/scripts/txt2html.sed