I've been assigned some sed homework in my class and am one step away from finishing the assignment. I've racked my head trying to come up with a solution and nothing's worked to the point where I'm about to give up.
Basically, in the file I've got...I'm supposed to replace this:
<b>Some text here...each bold tag has different content...</b>
with
Some text here...each bold tag has different content...
I've got it partially completed, but what I can't figure out is how to "echo" the extracted content using sed (regexp).
I manage to substitute the content out just fine, but it's when I'm trying to actually OUTPUT the content that's between the HTML tags that it goes wrong.
If that's confusing, I truly apologize. I've been at this project a couple hours now and am getting a bit frusturated. Basically, why does this not work?
s/<b>.*<\/b>/.*/g
I simply want to output the content WITHOUT the bold tags.
Thanks a bunch!