mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	runtime(doc): Updating the examples in the xxd manpage
closes: #15508 Signed-off-by: RestorerZ <restorer@mail2k.ru> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
		
				
					committed by
					
						 Christian Brabandt
						Christian Brabandt
					
				
			
			
				
	
			
			
			
						parent
						
							85c724ea0e
						
					
				
				
					commit
					8f3f78546f
				
			| @@ -311,7 +311,7 @@ Patch the date in the file xxd.1 | |||||||
| .br | .br | ||||||
| \fI% xxd \-s 0x33 \-l 13 \-c 13 xxd.1\fR | \fI% xxd \-s 0x33 \-l 13 \-c 13 xxd.1\fR | ||||||
| .br | .br | ||||||
| 0000033: 3235 7468 204d 6179 2031 3939 36  25th May 1996 | 00000033: 3235 7468 204d 6179 2031 3939 36  25th May 1996 | ||||||
| .PP | .PP | ||||||
| .br | .br | ||||||
| Create a 65537 byte file with all bytes 0x00, | Create a 65537 byte file with all bytes 0x00, | ||||||
| @@ -324,11 +324,11 @@ Hex dump this file with autoskip. | |||||||
| .br | .br | ||||||
| \fI% xxd \-a \-c 12 file\fR | \fI% xxd \-a \-c 12 file\fR | ||||||
| .br | .br | ||||||
| 0000000: 0000 0000 0000 0000 0000 0000  ............ | 00000000: 0000 0000 0000 0000 0000 0000  ............ | ||||||
| .br | .br | ||||||
| * | * | ||||||
| .br | .br | ||||||
| 000fffc: 0000 0000 41                   ....A | 0000fffc: 0000 0000 41                   ....A | ||||||
| .PP | .PP | ||||||
| Create a 1 byte file containing a single 'A' character. | Create a 1 byte file containing a single 'A' character. | ||||||
| The number after '\-r \-s' adds to the line numbers found in the file; | The number after '\-r \-s' adds to the line numbers found in the file; | ||||||
|   | |||||||
| @@ -206,7 +206,7 @@ EXAMPLES | |||||||
|  |  | ||||||
|        Display just the date from the file xxd.1 |        Display just the date from the file xxd.1 | ||||||
|        % xxd -s 0x33 -l 13 -c 13 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. |        Copy input_file to output_file and prepend 100 bytes of value 0x00. | ||||||
|        % xxd input_file | xxd -r -s 100 > output_file |        % xxd input_file | xxd -r -s 100 > output_file | ||||||
| @@ -214,7 +214,7 @@ EXAMPLES | |||||||
|        Patch the date in the file xxd.1 |        Patch the date in the file xxd.1 | ||||||
|        % echo "0000034: 3574 68" | xxd -r - xxd.1 |        % echo "0000034: 3574 68" | xxd -r - xxd.1 | ||||||
|        % xxd -s 0x33 -l 13 -c 13 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 |        Create  a  65537 byte file with all bytes 0x00, except for the last one | ||||||
|        which is 'A' (hex 0x41). |        which is 'A' (hex 0x41). | ||||||
| @@ -222,9 +222,9 @@ EXAMPLES | |||||||
|  |  | ||||||
|        Hex dump this file with autoskip. |        Hex dump this file with autoskip. | ||||||
|        % xxd -a -c 12 file |        % 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‐ |        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 |        ter  '-r -s' adds to the line numbers found in the file; in effect, the | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user