摘要:
写在前面:案例、常用、归类、解释说明。(By Jim)命令行参数$1为第一个参数,$2为第二个参数,依次类推...示例:#!/bin/bash# using one command line parameterfactorial=1for((number = 1;number<=$1;number++))do factorial=$[ $factorial*$number ]doneecho The factorial of $1 is $factorial调用./test1 5(这样就把参数传递进去了)结果:The factorial of 5 is 120#!/bin/bash# t 阅读全文