If a file containing 128 bytes with decimal values zero to 127,
in increasing order, is supplied as standard input to the
command:
od -A d -t a
on an implementation using an input block size of 16 bytes, the
standard output, independent of the current locale setting, would
be similar to:
0000000 nul soh stx etx eot enq ack bel bs ht nl vt ff cr so si
0000016 dle dc1 dc2 dc3 dc4 nak syn etb can em sub esc fs gs rs us
0000032 sp ! " # $ % & ' ( ) * + , - . /
0000048 0 1 2 3 4 5 6 7 8 9 : ; < = > ?
0000064 @ A B C D E F G H I J K L M N O
0000080 P Q R S T U V W X Y Z [ \ ] ^ _
0000096 ` a b c d e f g h i j k l m n o
0000112 p q r s t u v w x y z { | } ~ del
0000128
Note that this volume of POSIX.1‐2017 allows nl
or lf
to be used
as the name for the ISO/IEC 646:1991 standard IRV character with
decimal value 10. The IRV names this character lf
(line feed),
but traditional implementations have referred to this character
as newline (nl
) and the POSIX locale character set symbolic name
for the corresponding character is a <newline>.
The command:
od -A o -t o2x2x -N 18
on a system with 32-bit words and an implementation using an
input block size of 16 bytes could write 18 bytes in
approximately the following format:
0000000 032056 031440 041123 042040 052516 044530 020043 031464
342e 3320 4253 4420 554e 4958 2023 3334
342e3320 42534420 554e4958 20233334
0000020 032472
353a
353a0000
0000022
The command:
od -A d -t f -t o4 -t x4 -N 24 -j 0x15
on a system with 64-bit doubles (for example, IEEE Std 754‐1985
double precision floating-point format) would skip 21 bytes of
input data and then write 24 bytes in approximately the following
format:
0000000 1.00000000000000e+00 1.57350000000000e+01
07774000000 00000000000 10013674121 35341217270
3ff00000 00000000 402f3851 eb851eb8
0000016 1.40668230000000e+02
10030312542 04370303230
40619562 23e18698
0000024