Grep filter and countMatches
Posted: Mon Jun 04, 2012 12:57 pm
Hi Simon:
Not sure if this is confusion in the documentation or something wrong with the Grep filter:
Using the TextPipe Engine, I'm calling addGrepFilter with "countMatches=1". The help says:
countMatches - true to only output a count of the number of matches, default False
But what it actually does is print out all of the matching (or non-matching, depending on "type") lines, and then print the countMatches result at the end.
Is this WAD? If so, is there a way to print JUST the countMatches value without all the matching/nonmatching lines?
Not sure if this is confusion in the documentation or something wrong with the Grep filter:
Using the TextPipe Engine, I'm calling addGrepFilter with "countMatches=1". The help says:
countMatches - true to only output a count of the number of matches, default False
But what it actually does is print out all of the matching (or non-matching, depending on "type") lines, and then print the countMatches result at the end.
Is this WAD? If so, is there a way to print JUST the countMatches value without all the matching/nonmatching lines?