您好,欢迎光临本网站![请登录][注册会员]  

搜索资源列表

  1. shell数组常用实例分享

  2. 本文为大家举一些shell数组的小例子,供大家学习参考
  3. 所属分类:其它

    • 发布日期:2020-09-15
    • 文件大小:34kb
    • 提供者:weixin_38546622
  1. shell数组常用实例分享

  2. 说明:shell中数组的下标默认是从0开始的 1、将字符串放在数组中,获取其长度 代码如下:#!/bin/bashstr=”a b –n d”array=($str)length=${#array[]}echo $length for ((i=0; i<$length; i++))doecho ${array[$i]}done 执行结果:[oracle99bill-as9 array]$ sh length.sh4a–nd 2)、打印字符串: 代码如下:#!/bin/bashstr=”a
  3. 所属分类:其它

    • 发布日期:2021-01-20
    • 文件大小:37kb
    • 提供者:weixin_38717574