syd-hex1
Hex-encode/decode the given file or standard input
Usage
syd-hex {[-hdeflsC]
<file | ->}
Overview
Given a file, hex-encode the file and print.
Given no positional arguments or "-" as argument, hex-encode standard input and print.
Use -d to hex-decode rather than encode.
Use -s with -d to hex-decode data with newline-delimited chunks.
Use -C with -s to warn and continue in case of read or encoding errors.
Use -f to force print decoded hex to TTY (insecure). By default, decoded hex output is not written to standard output if it's attached to a TTY.
Use -l <human-size> to exit after size bytes are read.
Use -l <line-count> with -s to exit after count lines are read.
Options
| -h | Display help. |
| -d | Hex-decode. |
| -e | Hex-encode (default). |
| -f, --force-tty | Force output to TTY (insecure). |
| -l <human-size> | Exit after size bytes are read. |
| -l <line-count> | Exit after count lines are read in stream mode. |
| -s, --stream | Enable stream mode with -d when data is hex-decoded with newline-delimited chunks. |
| -C, --continue-on-failure | Continue in case of read or encoding errors in stream mode. |