1.

____ searches for a first instance of a pattern in the backward direction.(a) /(b) %(c) &(d) ?The question was asked during an interview.The query is from Commands for Searching, Replacing and Substituting in Vi Editor topic in portion The Vi Editor of Unix

Answer»

Correct option is (d) ?

To elaborate: We can use ? symbol in COMMAND mode for searching a particular PATTERN in the BACKWARD direction.The search BEGINS backwards to position the cursor on the first instance of the word. For example, if we are looking for the string “print” then we use the following command:



Discussion

No Comment Found

Related InterviewSolutions