Computer Science - Unix - Discussion

Discussion Forum : Unix - Section 1 (Q.No. 27)
27.
In vi editor, forward search is performed using the command.
:pat
?pat
/pat
All of the above
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Venunath said:   1 decade ago
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.

S.R.R. said:   1 decade ago
/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.

Post your comments here:

Your comments will be displayed after verification.