From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653647621708.tru64-unix-managers.marc@archive.invalid> From: Nikola Milutinovic Date: Sun, 06 May 2001 11:09:59 +0000 To: tru64-unix-managers Subject: SUMMARY: HTML parser (not Tru64 specific) X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653647621708 Thanks to a lot of people. William_Bochnik@acml.com Suggested Perl, Perl, Perl "Angel R. Rivera" Sugested I use XML. Mark.Deiss@acs-gsg.com Gave a sed script. I STILL haven't learned Perl, I've never even smelled XML. "sed", however is a different story. I'm donating Mark's solution. sed -ne ' # only going to operate on patterns prefaced with the html tag / html tag /<\/td>{ # do some housekeeping edits # remove any multi-line carriage returns, pad with spaces # remove the and html tags s/\n/ /g s/]*>// s/<\/td>// # print the resulting pattern space p # branch to the end of the loop b } # have not found closing html tag, read another line into the pattern space N # jump to the top of the inner loop and check for the html closing tag b branch1 } ' your_html_filename Nix.