shell中的函数,shell中的数组,告警系统需求分析

shell中的函数 函数就是把一段代码整理到了一个小单元中,并给这个小单元起一个名字,当用到这段代码时直接调用这个小单元的名字即可。格式: function f_name() { command } 函数必须要放在最前面 示例1 #!/bin/bash inp (){ echo "the first is $1" echo "the second is $2" echo "the third is
相关文章
相关标签/搜索