[root@shou shou]# shou1=ceo
[root@shou shou]# ceo=123456
[root@shou shou]# echo ${!shou1}
123456
[root@shou shou]# eval echo \$$shou1
123456
shell中变量的间接调用
阅读 56
2022-06-20
[root@shou shou]# shou1=ceo
[root@shou shou]# ceo=123456
[root@shou shou]# echo ${!shou1}
123456
[root@shou shou]# eval echo \$$shou1
123456
相关推荐
精彩评论(0)