Skip to Content
gnux

-t, --format

Select output format or formats; TYPE is a, c, d, f, o, u or x with an optional size, and z.

An option of odx.

Usage

odx -t TYPE [FILE]...
odx --format=TYPE [FILE]...

Details

ShortLongValueDefaultMeaning
-t--formatTYPEselect output format or formats; TYPE is a, c, d, f, o, u or x with an optional size, and z

Examples

A hexdump with offsets in hex and the text alongside

odx -A x -t x1z image.png

A config file breaks a parser, but looks fine in an editor: find the stray carriage returns and the byte order mark, which the terminal view colors apart from the text

odx -A x -t x1z -N 64 config.yaml

Read the first four bytes (a magic number)

odx -A n -t x1 -N 4 image.png

Skip a 512-byte header and dump the next 64 bytes

odx -j 512 -N 64 -t x1 disk.img

Decode big-endian 32-bit integers

odx --endian=big -t u4 counts.bin

Decode floating-point values

odx -t f8 samples.bin

Two formats per line, hex bytes over characters

odx -t x1 -t c file.txt
odx -v -t x1 zeros.bin

Eight bytes per line

odx -w8 -t x1 data.bin

Help in the terminal

gnux help odx --format

On this page