#!/bin/bash
#Program:
# This program shows "Hello World!" in your screen.
#History
# 2015/12/09
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
echo "The script name is ==> $0"
echo "Total parameter number is ==> $#"
[ "$#" -lt 2 ] && echo "The number of paramter is less than 2. Stop here."\
&& exit 0
echo "Your whole parameter is ==> '$@'"
echo "Your whole parameter is ==> $@"
echo "The 1st parameter is ==> $1"
echo "The 2nd parameter is ==> $2"
shell编程入门之parameter
最新推荐文章于 2024-06-29 15:19:57 发布