Friday, October 23, 2015

Re: How to extract information from large file based on search pattern

LCD 47 wrote:
> The easy way:
>
> fgrep -wf small_file.txt big_file.txt
>
I'd like to expand a bit on what LCD mentioned: fgrep will build a
finite state automaton to do the matching as if it was running all the
matching in parallel; it will find matches with one pass, no backing up,
through the large text file. In other words, it'll be fast.

Regards,
Chip Campbell

--
--
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: