Skip to Content
gnux

-N, --read-bytes

Limit dump to BYTES input bytes.

An option of odx.

Usage

odx -N BYTES [FILE]...
odx --read-bytes=BYTES [FILE]...

Details

ShortLongValueDefaultMeaning
-N--read-bytesBYTESlimit dump to BYTES input bytes

Examples

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

Help in the terminal

gnux help odx --read-bytes

On this page