Which of the following is performed by expr string handling’s function?

Which of the following is performed by expr string handling’s function?
A. determine the length of string
B. extract a substring
C. locate the position of a character in a string
D. determine the length of string, extract and locate the position of the string
 
Answer: d
Explanation: Though expr’s string handling features are not that elegant, bourne shell users hardly have any choice. For evaluating strings expr uses two expressions separated by a colon.
 

Tìm kiếm

Back
Top