i want to replace some occurrence in a bin file. for exemple
file.bin content :
0A0A0A0A954654370B0B0B0B
0A0A0A0A453426540B0B0B0B
I want to modify the content between 0A0A0A0A and 0B0B0B0B without care of the original content and replacing with 0A0A0A0A12345678B0B0B0B in each line
i use perl regex command : perl -pi -e 's|\x0A\x0A\x0A\x0A\x95\x46\x54\x37\x0B\x0B\x0B\x0B|\x0A\x0A\x0A\x0A\x12\x34\x56\x78\xB0\xB0\xB\x0B|g' /file.bin
but how to tell perl to ignore the content between 0A and 0B in source section to use one command for the all content of file ?