How can a Linux user use vi to edit the first 30 lines of a 60-line file and replace all occurrences of test to TEST?
A.
:30s/test/TEST/g
B.
:1,30s/test/TEST/g
C.
:s/test/TEST/g
D.
:/s/test/TEST/g
How can a Linux user use vi to edit the first 30 lines of a 60-line file and replace all occurrences of test to TEST?
How can a Linux user use vi to edit the first 30 lines of a 60-line file and replace all occurrences of test to TEST?
A.
:30s/test/TEST/g
B.
:1,30s/test/TEST/g
C.
:s/test/TEST/g
D.
:/s/test/TEST/g
Correct answer is B