e2140ec |
Jamozed |
2022-03-06 15:27:45 |
0
|
.TH OD 1 2022-03-06 "OMKOV coreutils" "General Commands Manual" |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
1
|
.SH NAME |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
2
|
od \(em dump files in various formats |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
3
|
.SH SYNOPSYS |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
4
|
\fBod\fR [-bcdosx] [-v] [-A \fIbase\fR] [-j \fIskip\fR] [-N \fIcount\fR] |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
5
|
[-t \fItype\fR] [\fIfile\fR...] |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
6
|
.SH DESCRIPTION |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
7
|
Write the contents of its input files to standard output in the specified |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
8
|
format(s). |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
9
|
.SH OPTIONS |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
10
|
The following options are supported: |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
11
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
12
|
.B -A \fIbase\fR |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
13
|
Offset address base. The characters '\fBd\fR', '\fBo\fR', and '\fBx\fR' will |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
14
|
result in an address offset base of decimal, octal, or hexadecimal, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
15
|
respectively. The character '\fBn\fR' will result in no offset address being |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
16
|
printed. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
17
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
18
|
.B -b |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
19
|
Interpret bytes in octal. Equivalent to \fB-to1\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
20
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
21
|
.B -c |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
22
|
Interpret bytes as characters. Characters \fB\\0\fR, \fB\\b\fR, \fB\\f\fR, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
23
|
\fB\\n\fR, \fB\\r\fR, and \fB\\t\fR will be displayed as escape sequences. Other |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
24
|
non-printable characters will be displayed as octal bytes. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
25
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
26
|
.B -d |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
27
|
Interpret words in unsigned decimal. Equivalent to \fB-tu2\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
28
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
29
|
.B -j \fIskip\fR |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
30
|
Number of bytes to skip from the beginning of input. May be an octal or |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
31
|
hexadecimal number if prefixed by '\fB0\fR' or '\fB0x\fR', respectively, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
32
|
otherwise it will be interpreted as a decimal number. Appending the characters |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
33
|
\&'\fBb\fR', '\fBk\fR', or '\fBm\fR' will cause \fIskip\fR to be interpreted as |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
34
|
a multiple of 512, 1024, or 1048575 bytes, respectively. Any '\fBb\fR' character |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
35
|
in a hexadecimal number will be interpreted as a number, not as a multiplier. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
36
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
37
|
.B -N \fIcount\fR |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
38
|
Number of bytes to process in total. \fIcount\fR will be interpreted in the same |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
39
|
manner as \fIskip\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
40
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
41
|
.B -o |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
42
|
Interpret words in octal. Equivalent to \fB-to2\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
43
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
44
|
.B -s |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
45
|
Interpret words in signed decimal. Equivalent to \fB-td2\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
46
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
47
|
.B -t \fItype\fR |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
48
|
Interpret data according to specified types. \fItype\fR may contain multiple |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
49
|
type specifiers. Each type specifier must start with one of the characters |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
50
|
\&'\fBa\fR', '\fBc\fR', '\fBd\fR', '\fBf\fR', '\fBo\fR', '\fBu\fR', or |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
51
|
\&'\fBx\fR', specifying named character, character, signed decimal, floating |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
52
|
point, octal, unsigned decimal, and hecadecimal, respectively. Non-character |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
53
|
types may be followed by a decimal integer that specifies the number of bytes to |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
54
|
be interpreted at a time. Integer types (\fBd\fR, \fBo\fR, \fBu\fR, \fBx\fR) may |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
55
|
be followed by \fBC\fR, \fBS\fR, \fBI\fR, or \fBL\fR instead of an integer, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
56
|
specifying \fBchar\fR, \fBshort\fR, \fBinteger\fR, or \fBlong\fR, respectively, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
57
|
and floating-point types (\fBf\fR) may be followed by \fBF\fR, \fBD\fR, or |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
58
|
\&\fBL\fR, specifying \fBfloat\fR, \fBdouble\fR, or \fBlong double\fR, |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
59
|
respectively. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
60
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
61
|
.B -v |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
62
|
Write all input data. If \fB-v\fR is not set, repeated lines will be output as a |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
63
|
single line containing only an asterisk. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
64
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
65
|
.B -x |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
66
|
Interpret words in hexadecimal. Equivalent to \fB-tx2\fR. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
67
|
.P |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
68
|
Multiple types can be specified using multiple \fB-bcdostx\fR options. Each |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
69
|
block of data is written in each of the specified formats in the order that they |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
70
|
were specified. If no type is specified, data will be output equivalent to |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
71
|
\fB-toI\fR with offset addressed printed in octal. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
72
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
73
|
.B --help |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
74
|
Display help information. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
75
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
76
|
.B --version |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
77
|
Display version information. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
78
|
.SH OPERANDS |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
79
|
The following operand is supported: |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
80
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
81
|
.I file |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
82
|
A pathname of an input file. If no \fIfile\fR operands are specified, of |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
83
|
\fIfile\fR is a '\fB-\fR', \fIhead\fR will read from standard input. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
84
|
.SH EXIT STATUS |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
85
|
The following exit values will be returned: |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
86
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
87
|
\ 0 |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
88
|
All files were processed successfully. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
89
|
.TP |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
90
|
>0 |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
91
|
An error occurred. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
92
|
.SH STANDARDS |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
93
|
The \fIod\fR utility is compliant with the IEEE Std 1003.2-1992 ("POSIX.2") |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
94
|
specification. |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
95
|
.SH COPYRIGHT |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
96
|
.nf |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
97
|
Copyright (C) 2020, Jakob Wakeling |
e2140ec |
Jamozed |
2022-03-06 15:27:45 |
98
|
MIT Licence (https://opensource.org/licenses/MIT) |
c1461fb |
Jamozed |
2020-06-27 14:35:08 |
99
|
.fi |
|
|
|
100
|
|