Saturday, April 12, 2014

RE: Select entire line based on tag, then export only those lines of text

Charles Campbell provided a good answer, but for a 1.5GB file
you must have a lot of RAM, and you must disable some features
before starting.

First, use your operating system to copy yourtabdelimitedfile to
ambulance-only-file.

Then do the following:

vim (or gvim)
:set eventignore=FileType noswapfile undolevels=-1
:e ambulance-only-file
:v/\c\<ambulance\>/d
:wq

However, that is really asking a lot, and it may take a long
time. Vim is for editing a file, not for filtering a 1.5GB
monstrosity.

John


--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment