-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
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-t | --format | TYPE | select 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.pngA 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.yamlRead the first four bytes (a magic number)
odx -A n -t x1 -N 4 image.pngSkip a 512-byte header and dump the next 64 bytes
odx -j 512 -N 64 -t x1 disk.imgDecode big-endian 32-bit integers
odx --endian=big -t u4 counts.binDecode floating-point values
odx -t f8 samples.binTwo formats per line, hex bytes over characters
odx -t x1 -t c file.txtPrint every line, even repeated ones
odx -v -t x1 zeros.binEight bytes per line
odx -w8 -t x1 data.binHelp in the terminal
gnux help odx --format