To find the ASCII value of the letter P in decimal:
echo -n P | od -A n -t u1
Probably not Unix’s finest one-liner, but I needed it just now and hopefully I’ll never need to figure this out again.