shell函数

1. 定义 :

func() {

}

function func() {

}

2.参数

func 1 2 3 4

可在函数中直接调$1来使用,>=10的用${n}

原文地址:https://www.cnblogs.com/chencesc/p/5000836.html