Linux shell???齨??????ü???
???????????? ???????[ 2015/3/13 13:39:23 ] ????????Linux ?????? shell Windows
????linux shell????????windows ??????????????????????????????????????????涼????????? ??????????????????????????鷽???Щ???????е????
????1.???鶨??
????[chengmo@centos5 ~]$ a=(1 2 3 4 5)
????[chengmo@centos5 ~]$ echo $a
????1
??????????????????飬?????????“???”????????
????2.?????????
????????????
????[chengmo@centos5 ~]$ echo ${#a[@]}
????5
??????${#??????[@??*]} ?????????鳤??
?????????
????[chengmo@centos5 ~]$ echo ${a[2]}
????3
????[chengmo@centos5 ~]$ echo ${a[*]}
????1 2 3 4 5
??????${??????[?±?]} ?±????0??? ?±????*????@ ???????????????
???????:
????[chengmo@centos5 ~]$ a[1]=100
????[chengmo@centos5 ~]$ echo ${a[*]}
????1 100 3 4 5
????[chengmo@centos5 ~]$ a[5]=100
????[chengmo@centos5 ~]$ echo ${a[*]}
????1 100 3 4 5 100
?????????? ??????[?±?] ??????????????????????±????????????????????????
???????:
????[chengmo@centos5 ~]$ a=(1 2 3 4 5)
????[chengmo@centos5 ~]$ unset a
????[chengmo@centos5 ~]$ echo ${a[*]}
????[chengmo@centos5 ~]$ a=(1 2 3 4 5)
????[chengmo@centos5 ~]$ unset a[1]
????[chengmo@centos5 ~]$ echo ${a[*]}
????1 3 4 5
????[chengmo@centos5 ~]$ echo ${#a[*]}
????4
????????????unset ????[?±?] ?????????????????????±?????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11