ascii

Display ASCII character codes in octal, decimal, and hexadecimal formats

brewmacoslinux
Try with needOr install directly
Source

About

List ASCII idiomatic names and octal/decimal code-point forms

Commands

ascii

Examples

Show ASCII code for a single character$ ascii A
Display ASCII codes for a range of characters$ ascii 0-9
List all printable ASCII characters with their codes$ ascii