$ vi +{<end>..<start>}d +wq <filename>
Deletes lines to of a file. You must put the end line first in the range for the curly brace expansion, otherwise it will not work properly.
by David Winterbottom (codeinthehole.com)
$ vi +{<end>..<start>}d +wq <filename>
Deletes lines to of a file. You must put the end line first in the range for the curly brace expansion, otherwise it will not work properly.
by David Winterbottom (codeinthehole.com)