[oracle@localhost ~]$ echo $name
john
[oracle@localhost ~]$ echo $middle
lemon
[oracle@localhost ~]$ echo $surname
Doe
[oracle@localhost ~]$ vi /u01/app/chengcj/read.sh
#!/bin/sh
#read.sh
echo "First name : \c"
echo $name
echo "Middle name : \c"
echo $middle
echo "Last name :\c"
echo $surname
[oracle@localhost ~]$ /u01/app/chengcj/read.sh
First name : \c
Middle name : \c
Last name :\c
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24156512/viewspace-720453/
,如需转载,请注明出处,否则将追究法律责任。