rootcho has asked for the wisdom of the Perl Monks concerning the following question:
hi,
Any idea which will be the fastest way to remove a lines from a file (of hundred of thousands lines) which match any line from another file or array-of-strings (thousands of lines).
Should I build one giant regex from the second-file and then compare against the first one by one OR there is faster way ??
Any idea which will be the fastest way to remove a lines from a file (of hundred of thousands lines) which match any line from another file or array-of-strings (thousands of lines).
Should I build one giant regex from the second-file and then compare against the first one by one OR there is faster way ??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: remove lines matching list of strings
by TomDLux (Vicar) on Nov 08, 2012 at 21:51 UTC | |
by rootcho (Pilgrim) on Nov 08, 2012 at 22:51 UTC | |
by TomDLux (Vicar) on Nov 09, 2012 at 14:17 UTC | |
Re: remove lines matching list of strings
by roboticus (Chancellor) on Nov 08, 2012 at 21:37 UTC | |
Re: remove lines matching list of strings
by frozenwithjoy (Priest) on Nov 08, 2012 at 21:11 UTC | |
by rootcho (Pilgrim) on Nov 08, 2012 at 22:49 UTC |
Back to
Seekers of Perl Wisdom