The first way did the trick. I made 2 lines one for Headline and one for Subheadline, since I each one uses a different <H> tag. Thanks for explaining it too.
Thanks for the fast replies!
The other question I had was I am trying to remove/delete all unwanted code from the file (for instance, everything from the beginning of the file to the headline tags and the ugly table tags in between.
Here is what I mean. obviously to keep the bold stuff. It's ok if this has to be done in more than one command, I just don't have enough experience yet with shell scripts to figure it out.
Could it be done using sed still? or maybe grep and then sed?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 2.2 (Linux)">
<META NAME="AUTHOR" CONTENT="">
<META NAME="CREATED" CONTENT="">
<META NAME="CHANGEDBY" CONTENT="">
<META NAME="CHANGED" CONTENT="">
<STYLE TYPE="text/css">
<!--
@page { size: 8.5in 11in; margin-left: 1.25in; margin-right: 1.25in; margin-top: 1in; margin-bottom: 1in }
P { margin-bottom: 0.08in }
TD P { margin-bottom: 0.08in }
-->
</STYLE>
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<DIV TYPE=HEADER>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>
<COL WIDTH=128*>
<COL WIDTH=128*>
<TR VALIGN=TOP>
<TD WIDTH=50%>
<P>Author: <SDFIELD TYPE=AUTHOR FORMAT=NAME>Ryan</SDFIELD></P>
</TD>
<TD WIDTH=50%>
<P ALIGN=RIGHT>Page <SDFIELD TYPE=PAGE SUBTYPE=RANDOM FORMAT=ARABIC>4</SDFIELD>
of <SDFIELD TYPE=DOCSTAT SUBTYPE=PAGE FORMAT=ARABIC>4</SDFIELD></P>
</TD>
</TR>
</TABLE>
<P ALIGN=RIGHT STYLE="margin-bottom: 0.2in">Words: <SDFIELD TYPE=DOCSTAT SUBTYPE=WORD FORMAT=ARABIC>1256</SDFIELD></P>
</DIV>
<TABLE WIDTH=100% BORDER=1 BORDERCOLOR="#000000" CELLPADDING=4 CELLSPACING=0 STYLE="page-break-before: always">
<COL WIDTH=64*>
<COL WIDTH=192*>
<TR VALIGN=TOP>
<TD WIDTH=25%>
<DIV ID="Frame1" DIR="LTR" STYLE="position: absolute; top: 1.58in; left: 1.24in; width: 6.01in; height: 0.48in; border: 1px solid #000000; padding: 0.06in; background: #ffffff">
<P CLASS="frame-contents" ALIGN=LEFT><FONT SIZE=4 STYLE="font-size: 16pt"><B>ARIZONA
– FOOD</B></FONT></P>
</DIV>
<P STYLE="font-style: normal"><B>Headline:</B></P>
</TD>
<TD WIDTH=75%>
<h6>content of h6</h6>
</TD>
</TR>
<TR VALIGN=TOP>
<TD WIDTH=25%>
<P STYLE="font-style: normal"><B>Subheadline:</B></P>
</TD>
<TD WIDTH=75%>
<h1>content of h1</h1>
</TD>
</TR>
</TABLE>
Thanks again.
-Ryan