bbe

Sed-like editor for binary files with pattern matching and substitution

brewmacoslinux
Try with needOr install directly
Source

About

Sed-like editor for binary files

Commands

bbe

Examples

Replace a hex pattern with another sequence in a binary file$ bbe -e 's/\x00\x01\x02/\xff\xfe\xfd/' input.bin -o output.bin
Display hex dump of a binary file with offset and ASCII representation$ bbe -e 'p' input.bin | head -20
Remove null bytes from a binary file$ bbe -e 's/\x00//g' input.bin -o output.bin