I want to catch the ASCII character through the shell script. basically I want to catch if user has pressed "enter key" Or "Escape key". based on that I have to do something in shell...I can do that in perl using the function ord(), but how do I do the same in shell script ?
Also how can I call the function ord() from shell. i'e' is it possible to call perl built-in fucntion from shell ?
Thanks
Start Free Trial