hex.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 23 Jul 2011 14:06:15 +0300
changeset 916 f96040b5d018
parent 588 59b4a51c5382
permissions -rwxr-xr-x
Reindent code
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
588
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
-*- mode: outline -*-
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
* Dump binary data in hex.
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
  $ od -t x1 <file
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
or
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
  $ hexdump -v -e '1/1 "0x%02x, "'
59b4a51c5382 Dump binary data in hex.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10