Utility to change raw data?
- 
 Is there a linux tool I can use that can change raw data inside a file? For instance say I wanted to change byte 2345 and forward in the file raw.bin to something else. Something like: 
 alter-data --pos=2345 --new_data="8718\r\n0x23abc\0x00" raw.binAny suggestions on what to use? 
- 
 I think what you want is a hex editor. 
- 
 @scottalanmiller said in Utility to change raw data?: I think what you want is a hex editor. No, I don't want it to do it interactively. If it was text I don't want something like vim, I want something like sed, awk etc. 
- 
 I think I might have a solution with ddandprintf.printf "8718\r\n0x23abc\0x00" | dd of=raw.bin seek=2345 oflag=seek_bytesSomething like that. 
- 
 @Pete-S said in Utility to change raw data?: I think I might have a solution with ddandprintf.printf "8718\r\n0x23abc\0x00" | dd of=raw.bin seek=2345 oflag=seek_bytesSomething like that. Interesting. Makes sense though. 
