I want similar option like getche() in C. How can I read just a single character input from command line?
getche()
Using read command can we do it?
read
In bash, read can do it:
read -n1 ans
2.1m questions
2.1m answers
60 comments
57.0k users