utility

od

Inspect file bytes in hexadecimal without address columns; output spacing can vary by implementation.

Formal Syntax & Structure

bash syntaxbash
od -An -tx1 file

Return Value

exit status

Inspect file bytes in hexadecimal without address columns; output spacing can vary by implementation.

Working Example

Example Snippetbash
printf 'ok\r\n' > record.txtod -An -tx1 record.txtIFS= read -r line < record.txtline=${line%$'\r'}printf '[%s]\n' "$line"
Bash Reference