runtime(doc): Updating the examples in the xxd manpage Commit: https://github.com/vim/vim/commit/8f3f78546f649a76d9149ffdcf13a526aab8d4ed Author: RestorerZ <resto...@mail2k.ru> Date: Fri Aug 16 21:03:58 2024 +0200
runtime(doc): Updating the examples in the xxd manpage closes: https://github.com/vim/vim/issues/15508 Signed-off-by: RestorerZ <resto...@mail2k.ru> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/doc/xxd.1 b/runtime/doc/xxd.1 index af0c9620a..2c00d5340 100644 --- a/runtime/doc/xxd.1 +++ b/runtime/doc/xxd.1 @@ -311,7 +311,7 @@ Patch the date in the file xxd.1 .br I% xxd \-s 0x33 \-l 13 \-c 13 xxd.1R .br -0000033: 3235 7468 204d 6179 2031 3939 36 25th May 1996 +00000033: 3235 7468 204d 6179 2031 3939 36 25th May 1996 .PP .br Create a 65537 byte file with all bytes 0x00, @@ -324,11 +324,11 @@ Hex dump this file with autoskip. .br I% xxd \-a \-c 12 fileR .br -0000000: 0000 0000 0000 0000 0000 0000 ............ +00000000: 0000 0000 0000 0000 0000 0000 ............ .br * .br -000fffc: 0000 0000 41 ....A +0000fffc: 0000 0000 41 ....A .PP Create a 1 byte file containing a single 'A' character. The number after '\-r \-s' adds to the line numbers found in the file; diff --git a/runtime/doc/xxd.man b/runtime/doc/xxd.man index 8b1f9eb9a..1251591f2 100644 --- a/runtime/doc/xxd.man +++ b/runtime/doc/xxd.man @@ -206,7 +206,7 @@ EXAMPLES Display just the date from the file xxd.1 % xxd -s 0x33 -l 13 -c 13 xxd.1 - 0000033: 3231 7374 204d 6179 2031 3939 36 21st May 1996 + 00000033: 3231 7374 204d 6179 2031 3939 36 21st May 1996 Copy input_file to output_file and prepend 100 bytes of value 0x00. % xxd input_file | xxd -r -s 100 > output_file @@ -214,7 +214,7 @@ EXAMPLES Patch the date in the file xxd.1 % echo "0000034: 3574 68" | xxd -r - xxd.1 % xxd -s 0x33 -l 13 -c 13 xxd.1 - 0000033: 3235 7468 204d 6179 2031 3939 36 25th May 1996 + 00000033: 3235 7468 204d 6179 2031 3939 36 25th May 1996 Create a 65537 byte file with all bytes 0x00, except for the last one which is 'A' (hex 0x41). @@ -222,9 +222,9 @@ EXAMPLES Hex dump this file with autoskip. % xxd -a -c 12 file - 0000000: 0000 0000 0000 0000 0000 0000 ............ + 00000000: 0000 0000 0000 0000 0000 0000 ............ * - 000fffc: 0000 0000 41 ....A + 0000fffc: 0000 0000 41 ....A Create a 1 byte file containing a single 'A' character. The number af‐ ter '-r -s' adds to the line numbers found in the file; in effect, the -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sf2Pp-005uaR-Iy%40256bit.org.