Is there a command to modify a binary file in the shell?
First, I created a file with all 0xFF values:
dd if=/dev/zero ibs=1K count=1 | tr "\000" "\377" > ./Test.img
hexdump Test.img
Output:
0000000 ffff ffff ffff ffff ffff ffff ffff ffff
*
0000400
Then I wanted to change some byte value like
0000000 aaaa ffff bbbb ffff cccc ffff ffff ffff
*
0000400
How can I change that? Or is there a command in shell script?