Delete all lines containing a pattern Vim

Introduction

So I was trying to find a way to remove a whole world of verbose output using excel and not coming up with anything but then found this: http://vim.wikia.com/wiki/Delete_all_lines_containing_a_pattern

Fix

All I needed to do was upload the file to a Linux box and use Vim. Command was very easy with VIM. Just use the below to remove whole lines of text which contain a keyword etc.
:g/word/d
Job done.

Leave a comment

Your email address will not be published. Comments are moderated before appearing.