I have a lot of very large hex files that I need to change one value at the same offset and save to another file. I have a script that finds each file and just need to put an operator for each file.
I think sed might be able to do this but I have not used it before and would like some help. If it can't do it by offset, I believe the section before it and after it in every file, and the one value needs to be incremented.
Thanks!
-----Post Update-----
if not, is there a simple python or perl script i can write?
-----Post Update-----
if not, is there a simple python or perl script i can write?
Hex, as in, to encode the value 0x0032 it contains the literal ASCII characters 0032? Or hex as in binary, containing a binary representation of 0x32? How many bits? What endian?
i was able to sort the files to where each group had the same value to be incremented and experimented with sed, which seemed to preserve the binary fine, but will be testing it out in a program monday
Which is it? Binary and hex are two different things. Or, rather, hex is an ASCII representation of binary. Does the file contain the binary or the hex representation?