1.

Which symbol is used for finding the length of the string?(a) .(b) *(c) .*(d) .*.I got this question in final exam.The query is from Case and Expr Command topic in section Essential Shell Programming of Unix

Answer»

The CORRECT option is (C) .*

For explanation: The length of the string can be extracted using .* . This regular expression signifies to EXPR that it has to display the number of characters MATCHING the pattern i.e. the length of the ENTIRE string. For example,



Discussion

No Comment Found

Related InterviewSolutions