Replace in file
Hello,
I have a binary file in which I know there is a hex string (xxd myFile | grep b13d4f returns a non empty result, where b13d4f is the string I am talking about.) How can I replace every occurence (actually there is just one in the file, but just in case) of this hex value with another one? Thanks. |
Something like:
Code:
perl -pi -e 's/\xB1\x3D\x4F/\xDE\xAD\xBE\xEF/' your_file |
Thx.
|
All times are GMT -5. The time now is 08:48 PM. |