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?
|
|
There's a
You can make a shell function for convenience:
|
||||
|
|
|
Try od:
|
|||||
|
|
|
||||
|
|