Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 1 (Q.No. 27)
27.
In vi editor, forward search is performed using the command.
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.
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.
?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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers