编写一个脚本,它可以让用户输入first name 和last name,最后在屏幕上显示"Your full name is:"的内容。

#!/bin/bash

#Function:

# User inputs his first name and last name,program shows his full name.

#History:

# 2015/01/24 xiao V0.1

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin

export PATH

read -p "Please input your first name: " filename           #提示用户输入

read -p "Please input your last name: " lastname     #提示用户输入

echo -e "\nYour full name is: $filename $lastname"

exit 0