XXD(1) General Commands Manual XXD(1) NAME xxd - (SYNOPSIS) xxd -h[elp] xxd [options] [infile [outfile]] xxd -r[evert] [options] [infile [outfile]] (DESCRIPTION) xxd uuencode(1) uudecode(1) ASCII (OPTIONS) infile infile "-" outfile `-' "" . , . -c8, -c 8, -c 010 -cols 8 . -a | -autoskip / autoskip: '*' . . -b | -bits ( ) , . , 0/1 , . , ascii ( ebcdic) . -r, -p, -i . -c cols | -cols cols -c cols | -cols cols . 16 (-i: 12, -ps: 30, -b: 6). 256. -E | -EBCDIC ASCII EBCDIC. . -r, -p -i . -g bytes | -groupsize bytes ( ) . -g 0 . 2 1. postscript include style . -h | -help . . -i | -include C . xxd , ( ). -l len | -len len . -p | -ps | -postscript | -plain postscript . . -r | -revert : ( ) . , xxd , . -r -p . . -seek offset -r : . -s [+][-]seek infile . + ( ). - ( + : ) , . -s , xxd . -u . . -v | -version . (CAVEATS) xxd -r . , , , . , xxd lseek(2) . , , , , null . xxd -r . . xxd -r ( -c). ASCII ( EBCDIC) . xxd -r -p ( postscript) , . % xxd -i file % xxd -i < file . lseek(2) , xxd -s +seek xxd -s seek . , xxd , '+' . ( )... ; `cat' . % sh -c 'cat > plain_copy; xxd -s 0 > hex_copy' < file 0x480 (=1024+128) . `+' " ", dd 1k, `128'. % sh -c 'dd of=plain_snippet bs=1k count=1; xxd -s +128 > hex_snippet' < file 0x100 ( = 1024-768) . % sh -c 'dd of=plain_snippet bs=1k count=1; xxd -s +-768 > hex_snippet' < file , , `+'. -s , strace(1) truss(1) xxd . (EXAMPLES) (: , ) file ( 0x30) . % xxd -s 0x30 file file ( 0x30) . % xxd -s -0x30 file 120 , 20 , . % xxd -l 120 -ps -c 20 xxd.1 2e544820585844203120224d616e75616c207061 676520666f7220787864220a2e5c220a2e5c2220 32317374204d617920313939360a2e5c22204d61 6e207061676520617574686f723a0a2e5c222020 2020546f6e79204e7567656e74203c746f6e7940 7363746e7567656e2e7070702e67752e6564752e 120 , 12 . % xxd -l 120 -c 12 xxd.1 0000000: 2e54 4820 5858 4420 3120 224d .TH XXD 1 "M 000000c: 616e 7561 6c20 7061 6765 2066 anual page f 0000018: 6f72 2078 7864 220a 2e5c 220a or xxd"..\". 0000024: 2e5c 2220 3231 7374 204d 6179 .\" 21st May 0000030: 2031 3939 360a 2e5c 2220 4d61 1996..\" Ma 000003c: 6e20 7061 6765 2061 7574 686f n page autho 0000048: 723a 0a2e 5c22 2020 2020 546f r:..\" To 0000054: 6e79 204e 7567 656e 7420 3c74 ny Nugent xxd.1 . % xxd -s 0x28 -l 12 -c 12 xxd.1 0000028: 3231 7374 204d 6179 2031 3939 21st May 199 input_file output_file 100 0x00. % xxd input_file | xxd -r -s 100 > output_file xxd.1 . % echo '0000029: 3574 68' | xxd -r - xxd.1 % xxd -s 0x28 -l 12 -c 12 xxd.1 0000028: 3235 7468 204d 6179 2031 3939 25th May 199 65537 , 0x00, 'A' ( 0x41). % echo '010000: 41' | xxd -r > file autoskip, . % xxd -a -c 12 file 0000000: 0000 0000 0000 0000 0000 0000 ............ * 000fffc: 0000 0000 40 ....A 'A' . '-r -s' ; . % echo '010000: 41' | xxd -r -s -0x10000 > file , vim(1) xxd , 'a' 'z' . :'a,'z!xxd , vim(1) xxd , 'a' 'z' . :'a,'z!xxd -r , vim(1) xxd , . : !!xxd -r . % xxd -c1 < /dev/term/b & % stty < /dev/term/b -echo -opost -isig -icanon min 1 % echo -n foo > /dev/term/b (RETURN VALUES) : 0 . -1 ( xxd -r -i ). 1 . 2 . 3 . 4,5 . (SEE ALSO) uuencode(1), uudecode(1), patch(1) (WARNINGS) . . , , . (VERSION) 1.7 xxd . (AUTHOR) (c) 1990-1997 by Juergen Weigert Distribute freely and credit me, make money and share with me, lose money and don't ask me. Tony Nugent Bram Moolenaar Juergen Weigert [] [] 2002/1/22 [Linuxman] http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh Manual page for xxd August 1996 XXD(1)