W3cubDocs

/Nushell

encode hex for formats

Encode a binary value using hex.

Signature

> encode hex {flags} ...rest

Parameters

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

Input/output types:

input output
binary string
list<binary> list<string>
record record
table table

Examples

Encode binary data

>0x[09F911029D74E35BD84156C5635688C0] |encode hex
09F911029D74E35BD84156C5635688C0

Tips: Command encode hex was not included in the official binaries by default, you have to build it with --features=extra flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/encode_hex.html