bbe is a sed-like editor for binary files. Instead of reading input in lines as sed, bbe reads arbitrary blocks from an input stream and performs byte-related transformations on found blocks. Blocks can be defined using start/stop strings, stream offset and block length, or a combination. Basic editing commands include delete, replace, search/replace, binary operations (and, or, etc.), append, and bcd/ASCII conversion. For examining the input stream, it contains some grep-like features like printing the input file name, stream offset, and block number of found blocks. Block contents can also be printed in different formats like hex, octal, ASCII, and binary.
|Tags||Utilities Text Processing Filters|
|Operating Systems||POSIX Linux|
Release Notes: The "x" command has been added.
Release Notes: Problems with zero size input were corrected.
Release Notes: The d-command was changed, so count can be replaced with *, meaning all bytes in a block. The man page now displays correctly in HP-UX.
Release Notes: The commands < and > have been added for inserting the contents of a file to an output stream. The commands u and f have been added for initializing part of a block or a whole block with a specific byte value.
Release Notes: More sane results when byte ranges of i and d commands overlap.