according to my limited knowlege i'm not sure if i wrote the right title for this question.
anyhow i want to know how to the bash detect the pressed key and do something according to the script structure ,
until now i know the
read somthing ; do_somthing_to $something
i want a script similar to the folowing :
#!/bin/bash while read a do echo "$a pressed" done
but i wanted it to give me the results at press time (it shouldn't wait me to hit enter)!