is there a tool which is able to find a given byte sequence in a file and delete that sequence?
I mean something like sed for binary files, I need to do something like
sed -e '/3C 00 75 00 6C 00 3E 00 0A 00 09 00 09 00 3C 00 2F 00 75 00 6C 00 3E/d'
(I know this won't work, as sed does not do byte-level editing, it's only an example in a kind of pseudo code).
My problem is this:
I want to process a text file this way, so sed would actually be the tool to choose. But the string I want to delete contains a newline, and even with the N command of sed I was not able to create a suitable sed command.
So now I'm looking for something which works on the byte level.
Thanks for any hint