【read】
读取键盘输入的变量
[root@monitor test]# cat ceshi.sh
#!/bin/bash
display='Please type your name:'
read -p "$display"
exit 0
[root@monitor test]# ./ceshi.sh
Please type your name:zhuzhu

 

注意read的用法