Linux Shell中的数组及遍历
linux-dash
A beautiful web dashboard for Linux
项目地址:https://gitcode.com/gh_mirrors/li/linux-dash

·
在Linux下使用shell的时候,为方便起见,偶尔会用到一下数组。数组的申明方式是:
也就是直接用圆括号包数组元素包起来,数组元素之间用空格隔开就行了。
数据的读取如下
数组的遍历用到一个取全部: ,完整示例如下:
更多细节请参考
Advanced Bash-Scripting Guide:http://www.tldp.org/LDP/abs/html/




A beautiful web dashboard for Linux
最近提交(Master分支:8 个月前 )
186a802e
added ecosystem file for PM2 5 年前
5def40a3
Add host customization support for the NodeJS version 5 年前
更多推荐
所有评论(0)