Friday, October 23, 2015

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

On Fr, 23 Okt 2015, LCD 47 wrote:

> On 23 October 2015, Christian Brabandt <cblists@256bit.org> wrote:
> > On Do, 22 Okt 2015, pra007 wrote:
> > #v+
> > 0 14908 chrisbra@debian /tmp % awk 'NR==FNR {a[$1]}
> [...]
>
> This reads the big file in memory. Possibly not the best approach
> with 800 MB of data...

Are you sure? I think, this loads only the first file with the IDs into
memory, not the large logfile.

Best,
Christian
--
Mailand oder Madrid - Hauptsache Italien!
-- Andreas Möller

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