How do I get the ASCII value of the alphabet?
For example, 97
for a
?
Define these two functions (usually available in other languages):
Usage:
|
|||||
|
You can see the entire set with:
You'll get tables in octal, hex, and decimal. |
|||
|
This works well,
|
|||||||||
|
I'm going for the simple (and elegant?) Bash solution:
For in a script you can use the following:
Notice the single quote before the CharValue. It is obligated... |
|||||||||||
|