decode hex for formats
Decode a hex-encoded value.
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 _×
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/decode_hex.html