I have a ton of files that I have to modified and I haven't done this stuff in years. I have an idea what my sed command should look like
sed '/^<!Blah*.[and then a bunch of stuff i dont' care including new lines]*]>$ d' file
as you can see, i'm not sure what the expression should look like to look for anything including tabs, spaces, new lines, etc
so an example doc would have:
<!blah something something
<something something>
<could have something>
]> //end
I have to delete all those lines.
edit: just a little more clarification. I want to look for something that begins with "<!blah" and delete all the lines until ']>' is found including ']>'
sed '/^<!Blah*.[and then a bunch of stuff i dont' care including new lines]*]>$ d' file
as you can see, i'm not sure what the expression should look like to look for anything including tabs, spaces, new lines, etc
so an example doc would have:
<!blah something something
<something something>
<could have something>
]> //end
I have to delete all those lines.
edit: just a little more clarification. I want to look for something that begins with "<!blah" and delete all the lines until ']>' is found including ']>'