1.

Which of the following symbols are used for searching a pattern in vi?(a) /(b) ?(c) %(d) / and ?I have been asked this question during a job interview.The doubt is from Commands for Searching, Replacing and Substituting in Vi Editor in chapter The Vi Editor of Unix

Answer»

The CORRECT option is (d) / and ?

The best I can explain: vi is EXTREMELY strong in searching for a pattern. Searching can be made both in FORWARD and in REVERSE DIRECTIONS using / and ? respectively.



Discussion

No Comment Found

Related InterviewSolutions