走进shell中的循环

1、shell中的for语句 格式:         for 定义变量         do                 active()         done 说明:for语句中定义变量的格式有多种:序列(seq 1 10);字符串(1 2 3);倒序(10...1);运算((i=0;i<3;i++));数组。 举例说明: 图 1 示例代码 图 2 示例结果 2、shell中的while
相关文章
相关标签/搜索