read has a parameter for timeout, you can use: read -t 3 answer. If you want read to wait for a single character (whole line + Enter is ...
確定! 回上一頁