Skip to content

Commit 526a0c4

Browse files
authored
Merge pull request Snailclimb#407 from ipofss/patch-4
feat:加入提示语
2 parents a6f08f5 + 229377c commit 526a0c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/operating-system/Shell.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ echo $length #输出:5
260260
echo $length2 #输出:5
261261
# 输出数组第三个元素
262262
echo ${array[2]} #输出:3
263-
unset array[1]# 删除下表为1的元素也就是删除第二个元素
263+
unset array[1]# 删除下标为1的元素也就是删除第二个元素
264264
for i in ${array[@]};do echo $i ;done # 遍历数组,输出: 1 3 4 5
265265
unset arr_number; # 删除数组中的所有元素
266266
for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没有任何输出内容
@@ -283,7 +283,7 @@ for i in ${array[@]};do echo $i ;done # 遍历数组,数组元素为空,没
283283

284284
![算数运算符](http://my-blog-to-use.oss-cn-beijing.aliyuncs.com/18-11-22/4937342.jpg)
285285

286-
我以加法运算符做一个简单的示例:
286+
我以加法运算符做一个简单的示例(注意:不是单引号,是反引号)
287287

288288
```shell
289289
#!/bin/bash

0 commit comments

Comments
 (0)