在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。
第1题:
在Shell变量引用操作符可实现字符串替换其中()用来测试如果变量stra存在且不为空,则返回为word,否则返回为空串
A.${stra:-word}
B.${stra:=word}
C.${stra:+word}
D.${stra:?word}
第2题:
在Shell变量引用操作符可实现模式匹配替换其中()用来的含义是若pattern匹配变量stra的头部,则删除最长匹配部分并返回剩余部分。
A.${strapattern}
B.${strapattern}
C.${stra%pattern}
D.${stra%%pattern}
第3题:
A.$
B.#
C.~
D.?
第4题:
在UNIX的Shell程序中,可以使用位置变量。若要指明Shell引用的最近后台进程的号码,可以使用位置变量(51)。
A.$ $
B.$ !
C.$#
D.$ -
第5题:
A、区分大小写
B、区分全半角
C、全字匹配
D、模式匹配
第6题:
在Shell变量引用操作符可实现字符串替换其中()用来测试,如果变量stra存在,则返回为变量stra的值,否则输出为word,并退出当前脚本程序
A.${stra-word}
B.${stra=word}
C.${stra:+word}
D.${stra:?word}
第7题:
A.exportfs
B.alias
C.exports
D.export
第8题:
此题为判断题(对,错)。
第9题:
shell提供的最有用的功能之一就是“shell重定向操作符”。()
第10题:
A、exportfs
B、alias
C、exports
D、export