decode hex

For formats.

Decode a hex-encoded value.

Command Type

built-in

Signature

> decode hex {flags}

Input/output types:

input output
string binary

Examples

Decode arbitrary binary data

> "09FD" | decode hex
Length: 2 (0x2) bytes | null_char printable whitespace ascii_other non_ascii
00000000:   09 fd                                                _×

Lowercase Hex is also accepted

> "09fd" | decode hex
Length: 2 (0x2) bytes | null_char printable whitespace ascii_other non_ascii
00000000:   09 fd                                                _×

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.