1.

To yank from current cursor up to first occurrence of string strin reverse direction, we can use:(a) y?str(b) y!str(c) yy str(d) yy ! strThe question was posed to me in an online interview.My doubt is from Operator-Command Combinations topic in section Advanced Vi of Unix

Answer»

Correct option is (a) y?str

For explanation I would SAY: The COMMAND y?str is another example of operator-command combination. The operator ? is used with y operator for yanking a string in REVERSE direction.



Discussion

No Comment Found

Related InterviewSolutions