shell中使用命令行中参数


parameter.sh
 
#!/bin/bash
 
echo "show all the parameter    : "
 
echo "the scirpt name is        : $0"
echo "the first  parameter is   : $1"
echo "the second parameter is   : $2"
echo "the third  parameter is   : $3"
echo "the four   parameter is   : $4"
echo "the five   parameter is   : $5"
 
 
exit      www.2cto.com