Get Hexadecimal Value

I have a record in a file that ends with the new line character "\n". How dio I determine the hexadecimal value for that?

record or field?
a sample file would help.

0x0A

man ascii or:

echo -ne "\n" | od -Ax -tx1z -v