Mercurial > vim
annotate runtime/doc/xxd.man @ 34411:7b6e286c89cb
runtime(doc) Update help text for matchbufline() and matchstrlist()
Commit: https://github.com/vim/vim/commit/a35235e824bb77df0cebdb2bd290e13f1201b292
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sat Feb 24 10:09:43 2024 +0100
runtime(doc) Update help text for matchbufline() and matchstrlist()
closes: https://github.com/vim/vim/issues/14080
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 24 Feb 2024 10:15:21 +0100 |
parents | 33cbd544dc46 |
children | 42f061099b39 |
rev | line source |
---|---|
6918 | 1 XXD(1) General Commands Manual XXD(1) |
7 | 2 |
3 | |
4 | |
5 NAME | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
6 xxd - make a hex dump or do the reverse. |
7 | 7 |
8 SYNOPSIS | |
9 xxd -h[elp] | |
10 xxd [options] [infile [outfile]] | |
11 xxd -r[evert] [options] [infile [outfile]] | |
12 | |
13 DESCRIPTION | |
36 | 14 xxd creates a hex dump of a given file or standard input. It can also |
15 convert a hex dump back to its original binary form. Like uuencode(1) | |
16 and uudecode(1) it allows the transmission of binary data in a `mail- | |
6918 | 17 safe' ASCII representation, but has the advantage of decoding to stan‐ |
36 | 18 dard output. Moreover, it can be used to perform binary file patching. |
7 | 19 |
20 OPTIONS | |
6918 | 21 If no infile is given, standard input is read. If infile is specified |
22 as a `-' character, then input is taken from standard input. If no | |
36 | 23 outfile is given (or a `-' character is in its place), results are sent |
24 to standard output. | |
7 | 25 |
6918 | 26 Note that a "lazy" parser is used which does not check for more than |
27 the first option letter, unless the option is followed by a parameter. | |
28 Spaces between a single option letter and its parameter are optional. | |
36 | 29 Parameters to options can be specified in decimal, hexadecimal or octal |
30 notation. Thus -c8, -c 8, -c 010 and -cols 8 are all equivalent. | |
7 | 31 |
32 -a | -autoskip | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
33 Toggle autoskip: A single '*' replaces NUL-lines. Default off. |
7 | 34 |
35 -b | -bits | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
36 Switch to bits (binary digits) dump, rather than hex dump. This |
36 | 37 option writes octets as eight digits "1"s and "0"s instead of a |
38 normal hexadecimal dump. Each line is preceded by a line number | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
39 in hexadecimal and followed by an ASCII (or EBCDIC) representa‐ |
33496
33cbd544dc46
patch 9.0.1998: xxd: cannot reverse a bit dump
Christian Brabandt <cb@256bit.org>
parents:
33444
diff
changeset
|
40 tion. The command line switches -p, -i do not work with this |
36 | 41 mode. |
7 | 42 |
43 -c cols | -cols cols | |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
44 Format <cols> octets per line. Default 16 (-i: 12, -ps: 30, -b: |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
45 6). Max 256. No maximum for -ps. With -ps, 0 results in one |
27118
2f854597399f
patch 8.2.4088: xxd cannot output everything in one line
Bram Moolenaar <Bram@vim.org>
parents:
13571
diff
changeset
|
46 long line of output. |
7 | 47 |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
48 -C | -capitalize |
29352 | 49 Capitalize variable names in C include file style, when using |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
50 -i. |
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
51 |
7 | 52 -E | -EBCDIC |
36 | 53 Change the character encoding in the righthand column from ASCII |
54 to EBCDIC. This does not change the hexadecimal representation. | |
55 The option is meaningless in combinations with -r, -p or -i. | |
7 | 56 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
57 -e Switch to little-endian hex dump. This option treats byte |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
58 groups as words in little-endian byte order. The default group‐ |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
59 ing of 4 bytes may be changed using -g. This option only ap‐ |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
60 plies to the hex dump, leaving the ASCII (or EBCDIC) representa‐ |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
61 tion unchanged. The command line switches -r, -p, -i do not |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
62 work with this mode. |
6918 | 63 |
7 | 64 -g bytes | -groupsize bytes |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
65 Separate the output of every <bytes> bytes (two hex characters |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
66 or eight bit digits each) by a whitespace. Specify -g 0 to sup‐ |
6918 | 67 press grouping. <Bytes> defaults to 2 in normal mode, 4 in lit‐ |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
68 tle-endian mode and 1 in bits mode. Grouping does not apply to |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
69 PostScript or include style. |
7 | 70 |
71 -h | -help | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
72 Print a summary of available commands and exit. No hex dumping |
36 | 73 is performed. |
7 | 74 |
75 -i | -include | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
76 Output in C include file style. A complete static array defini‐ |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
77 tion is written (named after the input file), unless xxd reads |
36 | 78 from stdin. |
7 | 79 |
80 -l len | -len len | |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
81 Stop after writing <len> octets. |
7 | 82 |
29352 | 83 -n name | -name name |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
84 Override the variable name output when -i is used. The array is |
29352 | 85 named name and the length is named name_len. |
86 | |
6918 | 87 -o offset |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
88 Add <offset> to the displayed file position. |
6918 | 89 |
7 | 90 -p | -ps | -postscript | -plain |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
91 Output in PostScript continuous hex dump style. Also known as |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
92 plain hex dump style. |
7 | 93 |
94 -r | -revert | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
95 Reverse operation: convert (or patch) hex dump into binary. If |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
96 not writing to stdout, xxd writes into its output file without |
6918 | 97 truncating it. Use the combination -r -p to read plain hexadeci‐ |
98 mal dumps without line number information and without a particu‐ | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
99 lar column layout. Additional whitespace and line breaks are al‐ |
33496
33cbd544dc46
patch 9.0.1998: xxd: cannot reverse a bit dump
Christian Brabandt <cb@256bit.org>
parents:
33444
diff
changeset
|
100 lowed anywhere. Use the combination -r -b to read a bits dump |
33cbd544dc46
patch 9.0.1998: xxd: cannot reverse a bit dump
Christian Brabandt <cb@256bit.org>
parents:
33444
diff
changeset
|
101 instead of a hex dump. |
7 | 102 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
103 -R when |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
104 In output the hex-value and the value are both colored with the |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
105 same color depending on the hex-value. Mostly helping to differ‐ |
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
106 entiate printable and non-printable characters. when is never, |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
107 always, or auto. When the $NO_COLOR environment variable is |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
108 set, colorization will be disabled. |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
109 |
7 | 110 -seek offset |
218 | 111 When used after -r: revert with <offset> added to file positions |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
112 found in hex dump. |
7 | 113 |
114 -s [+][-]seek | |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
115 Start at <seek> bytes abs. (or rel.) infile offset. + indicates |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
116 that the seek is relative to the current stdin file position |
1126 | 117 (meaningless when not reading from stdin). - indicates that the |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
118 seek should be that many characters from the end of the input |
1126 | 119 (or if combined with +: before the current stdin file position). |
120 Without -s option, xxd starts at the current file position. | |
7 | 121 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
122 -u Use upper-case hex letters. Default is lower-case. |
7 | 123 |
124 -v | -version | |
13571
362b27e3f702
patch 8.0.1658: capitalize argument not available in long form
Christian Brabandt <cb@256bit.org>
parents:
6918
diff
changeset
|
125 Show version string. |
7 | 126 |
36 | 127 CAVEATS |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
128 xxd -r has some built-in magic while evaluating line number informa‐ |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
129 tion. If the output file is seekable, then the line numbers at the |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
130 start of each hex dump line may be out of order, lines may be missing, |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
131 or overlapping. In these cases xxd will lseek(2) to the next position. |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
132 If the output file is not seekable, only gaps are allowed, which will |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
133 be filled by null-bytes. |
7 | 134 |
36 | 135 xxd -r never generates parse errors. Garbage is silently skipped. |
7 | 136 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
137 When editing hex dumps, please note that xxd -r skips everything on the |
36 | 138 input line after reading enough columns of hexadecimal data (see option |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
139 -c). This also means that changes to the printable ASCII (or EBCDIC) |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
140 columns are always ignored. Reverting a plain (or PostScript) style hex |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
141 dump with xxd -r -p does not depend on the correct number of columns. |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
142 Here, anything that looks like a pair of hex digits is interpreted. |
7 | 143 |
144 Note the difference between | |
145 % xxd -i file | |
146 and | |
147 % xxd -i < file | |
148 | |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
149 xxd -s +seek may be different from xxd -s seek, as lseek(2) is used to |
36 | 150 "rewind" input. A '+' makes a difference if the input source is stdin, |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
151 and if stdin's file position is not at the start of the file by the |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
152 time xxd is started and given its input. The following examples may |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
153 help to clarify (or further confuse!): |
7 | 154 |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
155 Rewind stdin before reading; needed because the `cat' has already read |
36 | 156 to the end of stdin. |
810 | 157 % sh -c "cat > plain_copy; xxd -s 0 > hex_copy" < file |
7 | 158 |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
159 Hex dump from file position 0x480 (=1024+128) onwards. The `+' sign |
36 | 160 means "relative to the current position", thus the `128' adds to the 1k |
161 where dd left off. | |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
162 % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +128 > hex_snippet" |
36 | 163 < file |
7 | 164 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
165 Hex dump from file position 0x100 (=1024-768) onwards. |
810 | 166 % sh -c "dd of=plain_snippet bs=1k count=1; xxd -s +-768 > hex_snippet" |
36 | 167 < file |
7 | 168 |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
169 However, this is a rare situation and the use of `+' is rarely needed. |
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
170 The author prefers to monitor the effect of xxd with strace(1) or |
36 | 171 truss(1), whenever -s is used. |
7 | 172 |
173 EXAMPLES | |
810 | 174 Print everything but the first three lines (hex 0x30 bytes) of file. |
7 | 175 % xxd -s 0x30 file |
176 | |
810 | 177 Print 3 lines (hex 0x30 bytes) from the end of file. |
7 | 178 % xxd -s -0x30 file |
179 | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
180 Print 120 bytes as a continuous hex dump with 20 octets per line. |
7 | 181 % xxd -l 120 -ps -c 20 xxd.1 |
36 | 182 2e54482058584420312022417567757374203139 |
183 39362220224d616e75616c207061676520666f72 | |
184 20787864220a2e5c220a2e5c222032317374204d | |
185 617920313939360a2e5c22204d616e2070616765 | |
186 20617574686f723a0a2e5c2220202020546f6e79 | |
187 204e7567656e74203c746f6e79407363746e7567 | |
7 | 188 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
189 Hex dump the first 120 bytes of this man page with 12 octets per line. |
7 | 190 % xxd -l 120 -c 12 xxd.1 |
36 | 191 0000000: 2e54 4820 5858 4420 3120 2241 .TH XXD 1 "A |
192 000000c: 7567 7573 7420 3139 3936 2220 ugust 1996" | |
193 0000018: 224d 616e 7561 6c20 7061 6765 "Manual page | |
194 0000024: 2066 6f72 2078 7864 220a 2e5c for xxd"..\ | |
195 0000030: 220a 2e5c 2220 3231 7374 204d "..\" 21st M | |
196 000003c: 6179 2031 3939 360a 2e5c 2220 ay 1996..\" | |
197 0000048: 4d61 6e20 7061 6765 2061 7574 Man page aut | |
198 0000054: 686f 723a 0a2e 5c22 2020 2020 hor:..\" | |
199 0000060: 546f 6e79 204e 7567 656e 7420 Tony Nugent | |
200 000006c: 3c74 6f6e 7940 7363 746e 7567 <tony@sctnug | |
7 | 201 |
202 Display just the date from the file xxd.1 | |
36 | 203 % xxd -s 0x36 -l 13 -c 13 xxd.1 |
204 0000036: 3231 7374 204d 6179 2031 3939 36 21st May 1996 | |
7 | 205 |
36 | 206 Copy input_file to output_file and prepend 100 bytes of value 0x00. |
7 | 207 % xxd input_file | xxd -r -s 100 > output_file |
208 | |
209 Patch the date in the file xxd.1 | |
810 | 210 % echo "0000037: 3574 68" | xxd -r - xxd.1 |
36 | 211 % xxd -s 0x36 -l 13 -c 13 xxd.1 |
212 0000036: 3235 7468 204d 6179 2031 3939 36 25th May 1996 | |
7 | 213 |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
214 Create a 65537 byte file with all bytes 0x00, except for the last one |
36 | 215 which is 'A' (hex 0x41). |
810 | 216 % echo "010000: 41" | xxd -r > file |
7 | 217 |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
218 Hex dump this file with autoskip. |
7 | 219 % xxd -a -c 12 file |
220 0000000: 0000 0000 0000 0000 0000 0000 ............ | |
221 * | |
222 000fffc: 0000 0000 40 ....A | |
223 | |
29352 | 224 Create a 1 byte file containing a single 'A' character. The number af‐ |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
225 ter '-r -s' adds to the line numbers found in the file; in effect, the |
36 | 226 leading bytes are suppressed. |
810 | 227 % echo "010000: 41" | xxd -r -s -0x10000 > file |
7 | 228 |
33444
0a2c50b59f30
runtime(doc): update xxd manpage and mention $NO_COLOR env
Christian Brabandt <cb@256bit.org>
parents:
33376
diff
changeset
|
229 Use xxd as a filter within an editor such as vim(1) to hex dump a re‐ |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
230 gion marked between `a' and `z'. |
7 | 231 :'a,'z!xxd |
232 | |
36 | 233 Use xxd as a filter within an editor such as vim(1) to recover a binary |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
234 hex dump marked between `a' and `z'. |
7 | 235 :'a,'z!xxd -r |
236 | |
36 | 237 Use xxd as a filter within an editor such as vim(1) to recover one line |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
238 of a hex dump. Move the cursor over the line and type: |
7 | 239 !!xxd -r |
240 | |
241 Read single characters from a serial line | |
242 % xxd -c1 < /dev/term/b & | |
243 % stty < /dev/term/b -echo -opost -isig -icanon min 1 | |
244 % echo -n foo > /dev/term/b | |
245 | |
246 RETURN VALUES | |
247 The following error values are returned: | |
248 | |
249 0 no errors encountered. | |
250 | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
251 -1 operation not supported (xxd -r -i still impossible). |
7 | 252 |
253 1 error while parsing options. | |
254 | |
255 2 problems with input file. | |
256 | |
257 3 problems with output file. | |
258 | |
259 4,5 desired seek position is unreachable. | |
260 | |
261 SEE ALSO | |
262 uuencode(1), uudecode(1), patch(1) | |
263 | |
264 WARNINGS | |
33376
56d291e65044
runtime(doc): regenerate xxd manpage
Christian Brabandt <cb@256bit.org>
parents:
29352
diff
changeset
|
265 The tool's weirdness matches its creator's brain. Use entirely at your |
36 | 266 own risk. Copy files. Trace it. Become a wizard. |
7 | 267 |
268 VERSION | |
269 This manual page documents xxd version 1.7 | |
270 | |
271 AUTHOR | |
272 (c) 1990-1997 by Juergen Weigert | |
273 <jnweiger@informatik.uni-erlangen.de> | |
274 | |
275 Distribute freely and credit me, | |
276 make money and share with me, | |
277 lose money and don't ask me. | |
278 | |
279 Manual page started by Tony Nugent | |
280 <tony@sctnugen.ppp.gu.edu.au> <T.Nugent@sct.gu.edu.au> | |
36 | 281 Small changes by Bram Moolenaar. Edited by Juergen Weigert. |
7 | 282 |
36 | 283 Manual page for xxd August 1996 XXD(1) |