snippet bash to get response from user