On Tue, 7 Feb 2006 07:24, Michael Christie wrote:
> I found a Text to html converter on the net asctoHTML ($41)and it can
> convert the text files to HTML and place it Locum ScanDocuments section
> for matching to a patients file.

You may have wasted your $41
The following 3-liner script does what you want if you use a Unix/Linux/Mac 
OSX system that is):

8<--- cut and save as txt2html, and make executable (chmod +x tx2html) ---

#!/bin/bash
echo "<html><body>" > $2
sed -e 's/$/<br>\r/' $1 >> $2
echo "</body></html>" >> $2

8<------------------------------------------------------------------------

usage: txt2html <textfilename> <htmlfilename>

Maybe the Windows buffs on this list can rewrite it into some DOS/Windows 
commands.
Alternatively, I found that one can become productive even with Windows by 
installing cygwin (free download from http://cygwin.com/). WIth it, you can 
run the 3-liner above directly.

If you want it more sophisticated (e.g. preserving some formatting) just 
extend the sed regular expression to your needs

Horst
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to