It's been covered in lots of places, and I have banged on it for about an hour and I am not making any headway on this particular string.
A weather-related web page I want to monitor has text on the screen, but it changes. Right now, the page has "None issued by this office recently." but in 2 hours it could say "Noah, Build me an ark". So to get around the "None issued by this office recently." blurb, I though I'd use "sed /from/,/to/..." but I am stuck on all the escapes and :[blank]s.
These are the elements that I "think" will do what I need for the "sed /from/,/to/"
<!-- // CONTENT STARTS HERE -->
<!-- // CONTENT ENDS HERE -->
I used
sed -n '/LSRMKX/,/RKAPELA/p'
sed -n '/HWOMKX/,/\$\$/p'
on 2 web pages that have weather data/content and that works wonderfully.
I need some sed.fu to sed between these 2 elements/strings
starting at
<!-- // CONTENT STARTS HERE -->
and ending at
<!-- // CONTENT ENDS HERE -->
I believe that would be a more comprehensive solution to my task.