summaryrefslogtreecommitdiffstats
path: root/doc/bbe.1
diff options
context:
space:
mode:
authorTimo Savinen <tjsa@iki.fi>2005-09-25 12:05:00 +0000
committerHadrien Dorio <hadrien.dorio@gmail.com>2017-12-16 00:24:05 +0100
commitb9eb6e4429575318d3c510b99961093c42321529 (patch)
tree997ceb30973318a5cb7da0a78a5a9784d8137e61 /doc/bbe.1
parent35d0e8a808dd1382d5236d1f6f8bfe62b2ebefee (diff)
downloadbinary-block-editor-b9eb6e4429575318d3c510b99961093c42321529.tar.gz
binary-block-editor-b9eb6e4429575318d3c510b99961093c42321529.zip
0.1.1
Diffstat (limited to 'doc/bbe.1')
-rw-r--r--doc/bbe.122
1 files changed, 20 insertions, 2 deletions
diff --git a/doc/bbe.1 b/doc/bbe.1
index fef176d..6426ed1 100644
--- a/doc/bbe.1
+++ b/doc/bbe.1
@@ -49,6 +49,9 @@ Add the contest of script\-file to commands.
.BR \-o ", " \-\-output=\fIname\fP
Write output to \fIname\fP instead of standard output.
.TP
+.BR \-s ", " \-\-suppress
+Suppress normal output, print only block contents.
+.TP
.BR \-? ", " \-\-help
List all available options and their meanings.
.TP
@@ -68,7 +71,7 @@ Block length in input stream is M.
String \fIstart\fP starts M bytes long block.
.TP
/start/:/stop/
-String \fIstart\fP starts the block and block ends to string \fIstop\fR
+String \fIstart\fP starts the block and block ends to string \fIstop\fR.
.TP
/start/:
String \fIstart\fR starts the block and block will end at next occurence of \fIstart\fR. Only the first \fIstart\fR is included to the block.
@@ -113,6 +116,17 @@ Skip \fIn\fR blocks before executing commands after this command.
.TP
L \fIn\fR
Leave all blocks unmodified starting from block number \fIn\fR. Affects only commands after this command.
+.TP
+N
+Before printing a block, the file name in which the block starts is printed.
+.TP
+F \fIf\fR
+Before printing a block, the input stream offset at the begining of the block is printed.
+\fIf\fR can be H, D or O for Hexadecimal, Decimal or Octal format of offset.
+.TP
+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.
.LP
\fBByte commands\fR
.br
@@ -124,6 +138,10 @@ Replace bytes starting at position \fIn\fR with string \fIstring\fR.
i \fIn\fR \fIstring\fR
Insert \fIstring\fR starting at position \fIn\fR.
.TP
+p \fIformat\fR
+The contents of block is printed in format defined by \fIformat\fR. \fIformat\fR
+can have any of the formats H, D, O and A for Hexadecimal, Decimal, Octal or Ascii.
+.TP
s/\fIsearch\fR/\fIreplace\fR/
Replace all occurrences of \fIsearch\fR with \fIreplace\fR.
.TP
@@ -153,7 +171,7 @@ Write bytes from the current block to file \fIfile\fR. Commands before w\-comman
.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, c, s, i, y 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
OpenPOWER on IntegriCloud