摘要:
写在前面:案例、常用、归类、解释说明。(By Jim)使用函数#!/bin/bash# testing the scriptfunction myfun { echo "This is an example of a function"}count=1while [ $count -le 5 ]do myfun count=$[ $count +1 ]doneecho "This is the end of the loop"myfunecho "Now this is the end of the script"(记得空格,函数一定 阅读全文