I have this question:
Use a single SED command to transform the following text:
<h1>this is the h1 header</h1>
<h2>this is the h2 header</h2>
<h3>this is the h3 header</h3>
<h4>this is the h4 header</h4>
to this text:
<div>this is the h1 header</div>
<div>this is the h2 header</div>
<div>this is the h3 header</div>
<div>this is the h4 header</div>
this the answer I came up with but is there a way to do this in a single command? f3 is my filename
sed -e 's/<h.>/<div>/g' -e 's/<\/h.>/<\/div>/g' f3