[英]Declare array but not define the array ( Shell scripting)
There are alot of guides , guides out there which show how to declare and define an array 有很多指南 , 指南显示如何声明和定义数组
foo[0] = "abc"
foo[1] = "def"
What i am trying to achieve is to declare an array but not define it because it does not have to be define immediately , in most programming languages it will look something like this 我想要实现的是声明一个数组但不定义它,因为它不必立即定义,在大多数编程语言中它看起来像这样
int bar[100];
Is this possible in shell scripting lanuage ?? 这可能是shell脚本语言吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.