-
Notifications
You must be signed in to change notification settings - Fork 1
/
xdump.1
69 lines (46 loc) · 1.64 KB
/
xdump.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.TH xdump 1 "2022-07-22" "xdump"
.SH NAME
xdump \- display file contents in hexadecimal and ASCII
.SH SYNOPSIS
\fBxdump\fR [\fB-h\fR] [\fB-v\fR] [\fB-s\fR \fIOFFSET\fR] [\fB-n\fR \fILENGTH\fR] [\fB-w\fR \fICOUNT\fR] [\fB-g\fR \fISIZE\fR] [\fIFILE\fR...]
.SH DESCRIPTION
The \fBxdump\fR utility is a filter which displays the specified file, or standard input if no file is specified, in hexadecimal and ASCII format. It uses a colored output to distinguish different categories of byte.
.SH OPTIONS
.IP "\fB-h\fR"
Display the help message and exit
.IP "\fB-v\fR"
Display the version number of xdump and exit
.IP "\fB-s\fR \fIOFFSET\fR"
Skip \fIOFFSET\fR bytes from the beginning of the input
.IP "\fB-n\fR \fILENGTH\fR"
Interpret only \fILENGTH\fR bytes of input
.IP "\fB-w\fR \fICOUNT\fR"
Print \fICOUNT\fR hex per line
.IP "\fB-g\fR \fISIZE\fR"
Group output into \fISIZE\fR-hex groups
.SH ENVIRONMENT
The behavior of \fBxdump\fR is affected by the following environment variables.
.IP "\fBNO_COLOR\fR"
When present and not an empty string (regardless of its value), prevents the addition of color.
.IP "\fBXDUMP_COLORS\fR"
Specifies the colors used to highlight various parts of the output. Its value is a semicolon-separated list that defaults to \fBoff=7;bar=7;nul=238;print=7;space=227;ascii=111;nonascii=204\fR.
.B off
offset
.B bar
vertical bar
.B nul
NULL bytes
.B print
printable ASCII characters
.B space
ASCII whitespace characters
.B ascii
other ASCII characters
.B nonascii
non-ASCII
.SH AUTHOR
Gustavo Costa <xfgusta@gmail.com>
.SH BUGS
Report bugs to <https://github.com/xfgusta/xdump/issues>
.SH COPYRIGHT
Copyright (c) 2022 Gustavo Costa