Next: Answers
Exercises
Identify vi colon commands to perform each of the
following actions:
- Find the number of the current cursor line within
the file.
- Delete the current cursor line and the three following
lines.
- Search backwards from the current cursor position
for the closest previous occurrence of the string '8.7'
- Delete the last ten lines of the file.
- Search forwards through
the file from the current cursor line to find the next number
in the file with three or more digits.
- Delete all the characters on the current line
between and including the occurrences of 'aa' and 'zz'.
- Replace all occurrences of '&' in the whole
file with the word 'and'.
Next: Answers