输入变量

输入用户名的firstname和lastname ,返回全名

 1 #!/bin/bash
 2 # Program:
 3 #       User inputs his first name and last name. Program shows his full name.
 4 #History:
 5 #2015/09/6      Zengdp First release
 6 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
 7 export PATH
 8 
 9 read -p "Please input your first name: " firstname
10 read -p "Please input your last name:  " lastname
11 echo -e "\nYour full name is :$firstname $lastname"

 

posted @ 2015-09-06 14:39  todaytoday  阅读(242)  评论(0编辑  收藏  举报