1.

Which symbol is used for matching a single character?(a) *(b) .(c) &(d) %The question was asked in examination.The question is from grep command in chapter Filters using Regular Expressions of Unix

Answer»

The CORRECT choice is (b) .

The BEST explanation: A (.) matches a SINGLE character. The shell uses ? character to indicate that. The PATTERN g . . . will match a four character STRING beginning a ‘g’. The shell’s equivalent pattern is g???



Discussion

No Comment Found

Related InterviewSolutions