InterviewSolution
Saved Bookmarks
| 1. |
Which of the following expression is a correct wildcard pattern if we want an expression in which the last character is not numeric?(a) *[!0](b) *[0-9](c) [0-9](d) *[!0-9]I have been asked this question during a job interview.Question is taken from Shell Basics in division The Shell of Unix |
|
Answer» CORRECT OPTION is (d) *[!0-9] Explanation: Wildcards are used for PATTERN matching. The COMMAND *[!0-9] will match all expression containing any characters except that the last CHARACTER entered is not numeric. Here ‘!’ is used for NOT. |
|