bash中的“ x [y] =([z] = w)”是什么意思?

魔声

我正在阅读bash脚本解析库以更好地使用bash语法。

使用该库,我可以通过以下方式获得脚本:

x[y]=([z]=w) ls > log

我认为x [y]这是一个数组运算。那么“([[z] = w)””是什么意思?

米查斯

男子重击:

Arrays  are assigned to using compound assignments of the form
name=(value1 ...  valuen), where each value is of the  form  [subscript]=string.

例如:

$ declare -A foo
$ foo=([one]=1 [two]=2)
$ echo ${foo[one]}
1
$ echo ${foo[two]}
2

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

x?.y?.z是什么意思?

逗号在构造中(x = x || y,z)是什么意思?

{z} / {x} / {y}在“图块”中是什么意思:[location.origin + location.pathname +“ countries / {z} / {x} / {y} .pbf”],

"struct{...} x, y, z;" 是什么意思 吝啬的?

-z在Bash中是什么意思?

x:y语法在JavaScript中是什么意思?

fsck输出中的“ clean,x / y”是什么意思?

x in range(...)== y在Python 3中是什么意思?

myFunction(x:y:xs)在Haskell中是什么意思

ppa:x / y是什么意思

SAS中的.Z是什么意思?

if(x > y / z) 这个表达式的意思是什么

apt install:注意,选择'foo'而不是'./foo_x.y.z_amd64.deb'-这是什么意思?

lambda x,(y,z):x |是什么?(z << y)在reduce()中起作用?

在Python代码中“ In [X]:”和“ Out [Y]:”是什么意思?

[1] 在 model.evaluate(X, Y)[1] 中是什么意思

返回z <0的结果是什么?z + y:z是什么意思?

在Python中x ='y''z'的含义是什么?

在Python中x = y = z的含义是什么?

(x:) 在haskell中是什么意思

$ {ARGUMENT + x}在Bash中是什么意思?

(filter(\ y-> not(x == y))xs)是什么意思?

〜的功能是什么意思?(例如function = f(〜,x,y))

COUNT(DISTINCT x || y)是什么意思?

在MVC视图中(x => y)是什么意思?

Shell脚本:-z在Shell脚本中是什么意思?

在MATLAB中dZ(1)= Z(2)是什么意思?

语法 m = z<p 在 python 中是什么意思

我可以做x = y = z。在C ++中为什么不允许x <y <z?