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.

Delete all lines containing a pattern Vim
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.