Computer Science - Unix - Discussion

Discussion :: Unix - Section 1 (Q.No.27)

27. 

In vi editor, forward search is performed using the command.

[A]. :pat
[B]. ?pat
[C]. /pat
[D]. All of the above
[E]. None of the above

Answer: Option C

Explanation:

No answer description available for this question.

S.R.R. said: (Mar 14, 2013)  
/string search forward for occurrence of string in text.
?string search backward for occurrence of string in text.
n move to next occurrence of search string.
N move to next occurrence of search string in opposite direction.

Venunath said: (Jun 19, 2015)  
These two commands differ only in the direction where the search takes place:

The / command searches forwards (downwards) in the file.
The ? command searches backwards (upwards) in the file.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.