decode hex for formats

Hex decode a value.

Signature

> decode hex {flags} ...rest

Parameters

  • ...rest: For a data structure input, decode data at the given cell paths

Input/output types:

inputoutput
list<string>list<binary>
recordrecord
stringbinary
tabletable

Examples

Hex decode a value and output as binary

> '0102030A0a0B' | decode hex
Length: 6 (0x6) bytes | printable whitespace ascii_other non_ascii
00000000:   01 02 03 0a  0a 0b                                   •••__•

Whitespaces are allowed to be between hex digits

> '01 02  03 0A 0a 0B' | decode hex
Length: 6 (0x6) bytes | printable whitespace ascii_other non_ascii
00000000:   01 02 03 0a  0a 0b                                   •••__•