1.

____ searches for a first instance of a pattern in forwarding direction.(a) /(b) %(c) &(d) ?I have been asked this question during an online interview.Origin of the question is Commands for Searching, Replacing and Substituting in Vi Editor topic in chapter The Vi Editor of Unix

Answer»

Right choice is (a) /

The best explanation: We can USE / symbol in command MODE for searching a particular pattern in forwarding direction.The search begins forward to POSITION the cursor on the first instance of the word. For EXAMPLE, if we are LOOKING for the string “print” then we can use the following command:



Discussion

No Comment Found

Related InterviewSolutions