read -p 和 echo  键盘读入,屏幕输出,5秒超时

[root@localhost ~]# cat read.sh

#!/bin/bash

read -t 5 -p "Please input a string:" string

echo $string