summaryrefslogtreecommitdiffstats
path: root/doc/bbe.1
diff options
context:
space:
mode:
authorTimo Savinen <tjsa@iki.fi>2005-11-15 18:53:17 +0000
committerHadrien Dorio <hadrien.dorio@gmail.com>2017-12-16 00:24:06 +0100
commitdcefa7a144fb35b23d1ca339d58f3b9e58e7faa3 (patch)
tree733c9942e36b0c7ecaf7597036806d7f1d2a536a /doc/bbe.1
parent63ae206f2970076a9d09e90d7fbcb17ec1fa26e4 (diff)
downloadbinary-block-editor-dcefa7a144fb35b23d1ca339d58f3b9e58e7faa3.tar.gz
binary-block-editor-dcefa7a144fb35b23d1ca339d58f3b9e58e7faa3.zip
0.1.8
Diffstat (limited to 'doc/bbe.1')
-rw-r--r--doc/bbe.130
1 files changed, 21 insertions, 9 deletions
diff --git a/doc/bbe.1 b/doc/bbe.1
index 64c67c0..2ce819c 100644
--- a/doc/bbe.1
+++ b/doc/bbe.1
@@ -25,7 +25,7 @@
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
-.TH "BBE" "1" "2005-10-20" "" ""
+.TH "BBE" "1" "2005-11-13" "" ""
.SH "NAME"
bbe \- binary block editor
.SH "SYNOPSIS"
@@ -127,6 +127,12 @@ Before printing a block, the input stream offset at the begining of the block is
B \fIf\fR
Before printing a block, the block number is printed (first block == 1)
\fIf\fR can be H, D or O for Hexadecimal, Decimal or Octal format of block number.
+.TP
+> \fIfile\fR
+Before printing a block, the contents of file \fIfile\fR is printed.
+.TP
+< \fIfile\fR
+After printing a block, the contents of file \fIfile\fR is printed.
.LP
\fBByte commands\fR
.TP
@@ -170,21 +176,27 @@ w \fIfile\fR
Write bytes from the current block to file \fIfile\fR. Commands before w\-command have effect to what will be written. %B or %nB in \fIfile\fR will be replaced by current block number. n in %nB is field length,
leading zero in n causes the block number to be left padded with zeroes.
.TP
-& \fIbyte\fR
-Performs binary and with \fIbyte\fR.
+& \fIc\fR
+Performs binary and with \fIc\fR.
.TP
-| \fIbyte\fR
-Performs binary or with \fIbyte\fR.
+| \fIc\fR
+Performs binary or with \fIc\fR.
.TP
-^ \fIbyte\fR
-Performs binary xor with \fIbyte\fR.
+^ \fIc\fR
+Performs binary xor with \fIc\fR.
.TP
~
Performs binary negation.
+.TP
+u \fIn\fR \fIc\fR
+All bytes from start of the block to offset \fIn\fR are replaced by \fIc\fR.
+.TP
+f \fIn\fR \fIc\fR
+All bytes starting from offset \fIn\fR to end of the block are replaced by \fIc\fR.
.LP
Nonvisible characters in strings can be escaped same way as in block definition strings. Character '/' in s and y commands can be any visible character.
.LP
-Note that the D, A, I, F, B, c, s, i, y, p and d commands cause the length of input and output streams to be different.
+Note that the D, A, I, F, B, c, s, i, y, p, <, > and d commands cause the length of input and output streams to be different.
.SH "EXAMPLES"
.TP
@@ -203,4 +215,4 @@ Blocks between strings "\\x2f\\x34\\x6a" and "\\xff\\xff" are written to file /t
.BR sed (1).
.SH "AUTHOR"
-Timo Savinen <tjsa@iki.fi>.
+Timo Savinen <tjsa@iki.fi >
OpenPOWER on IntegriCloud