单项选择题
在shell脚本中,good是已知变量,下面哪种方法不可以实现字符串的拼接赋值?()
A.txt="I am "$good"vegetable!"B.txt="I am ${good}vegetable!"C.txt=’I am ’$good’vegetable!’D.txt=’I am ${good}vegetable!’
单项选择题 在shell脚本中,已知变量string=’creeper?awwwwman!’,那么echo ${string#*w}的结果是()。
单项选择题 在shell脚本中,已知变量string=’creeper?awwwwman!’,那么echo ${string%w*}的结果是()。
单项选择题 在shell脚本中,已知变量string=’creeper?awwwwman!’,那么echo ${string##*w}的结果是()。