1.

Which operator is used in vi to filter text?(a) %%(b) &&(c) $(d) !I have been asked this question during an online interview.Question is taken from Operator-Command Combinations in section Advanced Vi of Unix

Answer»

Right ANSWER is (d) !

The best explanation: vi provides a marvellous feature of allowing UNIX filter to ACT on the text that’s displayed on the terminal. For FILTERING text screen,

1. MOVE to the beginning of the text to be acted upon and press !

2. move to the other end of the text using navigation command like G

3. Enter the command to act on the text.



Discussion

No Comment Found

Related InterviewSolutions