单项选择题
shell中,以下哪个命令能判断普通文件file是否存在?()
A.if exist fileB.test [-f file ]C.test [-z file ]D.read file
单项选择题 在shell脚本中,已知变量string=’creeper?awwwwman!’,那么echo ${string:6:3}的结果是()。
单项选择题 在shell脚本中,已知string="hasaki",请问echo ${string:1:3}将输出什么内容?()
单项选择题 在shell脚本中,下面哪种方法可以获得字符串变量string的长度?()