shellScript之数组操作4
来源:互联网 发布:广州恒大淘宝 编辑:程序博客网 时间:2024/06/05 17:25
#!/bin/bashcity[1]="hong kong"city[100]="mass"city[101]="newyork"city[1000]=altafor i in ${city[@]}do echo $idone
结果:
~/script/shell_text $ ./9array.sh hongkongmassnewyorkalta
阅读全文
0 0
- shellScript之数组操作4
- shellScript之数组操作1
- shellScript之数组操作2
- shellScript之数组操作3
- shellScript之数组操作5
- shellScript之数组操作6
- shellScript之数组操作7
- shellScript之位置参数
- shellScript之if_else语句
- shellScript之if_elif_else语句
- shellScript之case语句
- shellScript之for语句
- shellScript之while语句
- shellScript之while语句
- shellScript之util语句
- shellScript之break关键字
- shellScript之continue语句
- shellScript之select语句
- 安卓端车牌识别的研发助力车辆管理
- 使用接口组织枚举
- shellScript之数组操作3
- 一致性哈希算法的原理与实现
- poj1065
- shellScript之数组操作4
- Liunx彩色进度条
- java关于hibernate如何基于注解创建联合主键
- C/C++程序的内存分配
- shellScript之数组操作5
- Django配置Ajax跨域调用/设置Cookie
- Android---广播
- iOS BASE64 编码 和HASH 哈希函数(散列函数) ~用户信息安全
- shellScript之数组操作6