hex.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 07 Jan 2015 20:02:07 +0200
changeset 1662 2fc04c90ddd3
parent 588 59b4a51c5382
permissions -rw-r--r--
Introduction to the Standard Directory Layout.
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