Bash Script
来源:互联网 发布:大学数据新闻作品 编辑:程序博客网 时间:2024/06/04 20:44
一:数组
取最后一个元素:echo ${ARR1[${#ARR1[@]}-1]} echo ${ARR1[@]:(-1)}echo "${array[-1]}"(Bash 4.2)
To get both the index and the value:
for index in "${!array[@]}"do echo "$index ${array[index]}"done
移除元素: unset,
shift: array=("${array[@]:1}")#removed the 1st element
0 0
- Bash Script
- shell script - BASH
- Shell Script(bash)简介
- Linux Bash Script
- Bash Self-Extracting Script
- linux bash script
- bash shell script
- Bash Shell Script Tutorials
- 学习心得之bash script
- create bash-shell-script
- Bash Script 格式化工具
- Linux Bash Script
- 浅入bash script
- bash script example
- Shell Script(bash)教学例
- Bash Commands - chmod # Invoking script
- Common functions for BASH SCRIPT
- check file exist bash script
- 那些牛b的ios开发第三方工具(利器虽好,新手慎用)
- js 日期格式化
- 在释放资源时,为什么有时会比较慢?
- python27 安装opencv2.4.6
- 存储过程--机房收费系统
- Bash Script
- vs2012 安装问题
- Qt中静态库与动态库的创建方法
- NOT_FOUND_ERR:Node was not found
- 多线程——问题引出以及解决方法
- 不同网段之间的访问问题
- 5.3.2. SQL服务器模式
- SQL Group by date on datetime column
- VC++ 实现FTP下载的通用类