perl -e"BEGIN{ $/ = \65536 }" -pe "s/\x00\x42\x00\x11/\x00\x42\x00\xf0 +/sgx"
And what if the four byte pattern crosses the 65536 byte boundary? Oops. :-)
In reply to Re^4: Slow find/replace hex in Perl win32
by jwkrahn
in thread Slow find/replace hex in Perl win32
by rickyboone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |