316 reputation
36
bio website
location
age 34
visits member for 3 years, 11 months
seen Dec 17 at 5:27

Aug
23
comment Remove all lines except D
@OlivierDulac That won't work, grep -F allows only literal strings, and yes I'm aware of this caveat, I assumed the OP's files would all look like their example and not have a D| in the middle of a line.
Aug
16
comment Faster way to find matching patterns from external file grep -f {patternfile} {source} in BASH
Um, agrep (from ftp.cs.arizona.edu/agrep) does support patterns from a file, btw, it's -f
Aug
16
comment Faster way to find matching patterns from external file grep -f {patternfile} {source} in BASH
Oh, didn't know that, I couldn't use agrep either. I've implemented the Wu-Manber myself because I needed a twist though: matching ~200k - 900k patterns against 10+ million files, only report matches ... don't suppose that's of any use?
Aug
16
comment Faster way to find matching patterns from external file grep -f {patternfile} {source} in BASH
@IgnacioVazquez-Abrams not quite, you can match them in O(N + M), N the file length, M the sum of all pattern lengths