2 ms·
grep can emit structured GrepResult records that include things like - the pattern that was searched for - the search options from the invocation (case,
by philsnow 6y ago
grep can emit structured GrepResult records that include things like
- the pattern that was searched for
- the search options from the invocation (case, line folding, etc)
- the text of the matched segment
- the byte range of the matched segment within the file
- the line number(s) of the matched segment within the file
- the file name
- contents of any (named) capture groups from the search pattern