I´m loosing my mind trying to make working an awk script for
1.- Search lines with more than x all-caps words and convert it to all-caps lines adding <h2> at the beginnig and </h2> at the end of that lines
2.- Add <h3> at the beginnig and </h3> at the end to the rest of lines (not the blank ones)
EXAMPLE line ONE
Example line two
Example line three
to:
<h2>EXAMPLE LINE ONE</h2>
<h3>Example line two</h3>
<h3>Example line three</h3>
does anyone know how to do it using awk?
1.- Search lines with more than x all-caps words and convert it to all-caps lines adding <h2> at the beginnig and </h2> at the end of that lines
2.- Add <h3> at the beginnig and </h3> at the end to the rest of lines (not the blank ones)
EXAMPLE line ONE
Example line two
Example line three
to:
<h2>EXAMPLE LINE ONE</h2>
<h3>Example line two</h3>
<h3>Example line three</h3>
does anyone know how to do it using awk?