close
The Wayback Machine - https://web.archive.org/web/20210207150728/https://github.com/Snailclimb/JavaGuide/issues/970
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell脚本移除数组元素指令误解 #970

Closed
aihw opened this issue Oct 28, 2020 · 1 comment
Closed

Shell脚本移除数组元素指令误解 #970

aihw opened this issue Oct 28, 2020 · 1 comment
Labels

Comments

@aihw
Copy link

@aihw aihw commented Oct 28, 2020

image

@aihw aihw changed the title Shell脚本移除数组元素指令 Shell脚本移除数组元素指令误解 Oct 28, 2020
@Snailclimb
Copy link
Owner

@Snailclimb Snailclimb commented Oct 31, 2020

感谢!已经修改:

image

在 Shell 中,使用 unset 关键字来删除数组元素,具体格式如下:

unset array_name[index]

其中,array_name 表示数组名,index 表示数组下标。

如果不写下标,而是写成下面的形式:

unset array_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants