I have a plain text file that looks like this –
234234 some text
345435 some text
23423 some text
I would like to convert this to HTML either by vbscript, perl or something else so that it looks nice when emailed out. That is maybe I can make the numbers Bolded etc.
Any ideas on how i can do this?
thanks
If your file is as simple as you have written, something like
perl -ne 'chomp; s!^(\d+)!<b>$1</b>!; print "$_<br />\n"' inputfile.txtwill do what you have asked.However if your source is any more complex than this, look into one of the many html formatting modules on CPAN