Question

I'm trying to use agrep and I can do approximate matches but I need to know where the match starts and where it finishes. Are there any flags that would allow me to do that?

No correct solution

OTHER TIPS

Is --show-position what you're looking for? From the docs:

Output control:

--show-position

Prefix each output record with the start and end offset of the first match within the record. The offset of the first character of the record is 0. The end position is given as the offset of the first character after the match.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top