I'd like to convert ASCII code (like -
or _
or .
, etc.) to hexadecimal representation in the Unix shell (without bc
command), eg : -
=> %2d
.
Any ideas?
|
|
||||
|
Try od:
|
|||||
|
There's a
You can make a shell function for convenience:
|
||||
|