VI Delete All Matching Lines

Delete all matching lines containing a string

:g/46.223.1./d

Replace all matching text in a file

:.,$s/wrong/right/


You may also like...