cast---to-hexdata - Normalize the input to lowercase, 0x-prefixed hex.
cast --to-hexdata
[options] input
Normalize the input to lowercase, 0x-prefixed hex.
The input data (input) can either be:
- Mixed case hex with or without the 0x prefix.
- 0x prefixed hex that should be concatenated, separated by
:
. - An absolute path to a file containing hex.
- A
@tag
, where the tag is defined in an environment variable.
{{#include common-options.md}}
-
Add 0x prefix:
cast --to-hexdata deadbeef
-
Concatenate hex values:
cast --to-hexdata "deadbeef:0xbeef"
-
Normalize hex value in
MY_VAR
:cast --to-hexdata "@MY_VAR"