网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在Shell变量引用操作符可实现字符串替换其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序。
- A、${stra-word }
- B、${stra=word }
- C、${stra: +word }
- D、${stra: ?word }
参考答案
更多 “在Shell变量引用操作符可实现字符串替换其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序。A、${stra-word }B、${stra=word }C、${stra: +word }D、${stra: ?word }” 相关考题
考题
在Shell变量引用操作符可实现字符串替换其中()用来测试如果变量stra存在且不为空,则返回为word,否则返回为空串A.${stra:-word}B.${stra:=word}C.${stra:+word}D.${stra:?word}
考题
在Shell变量引用操作符可实现字符串替换其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序A.${stra-word}B.${stra=word}C.${stra:+word}D.${stra:?word}
考题
在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。A.${strapattern}B.${strapattern}C.${stra%pattern}D.${stra%%pattern}
考题
在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。A、${stra #pattern}B、${stra##pattern }C、${stra%pattern}D、${stra%%pattern}
考题
在Shell变量引用操作符可实现字符串替换其中()用来测试如果变量stra存在且不为空,则返回为word,否则返回为空串。A、${stra:-word }B、${stra:=word }C、${stra: +word }D、${stra: ?word }
考题
单选题在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。A
${stra #pattern}B
${stra##pattern }C
${stra%pattern}D
${stra%%pattern}
考题
单选题在Shell变量引用操作符可实现字符串替换其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序。A
${stra-word }B
${stra=word }C
${stra: +word }D
${stra: ?word }
考题
单选题在Shell变量引用操作符可实现字符串替换其中()用来测试如果变量stra存在且不为空,则返回为word,否则返回为空串。A
${stra:-word }B
${stra:=word }C
${stra: +word }D
${stra: ?word }
考题
单选题下面哪条命令可用来使shell变量变为一个全局变量。()A
aliasB
exportsC
exportfsD
export
热门标签
最新试卷