Mar-13-2018, 12:46 AM
what mgrep should do is take a grep argument that has line separators, and search the specified file(s) (or stdin if no files specified) for a match of the group of lines as a group. i also want the context output options -A, -B, and -C and the list option -l and the number option -n. suppose i search for
foo\nbar
. lots of files have lots of lines with foo
. but none of those will match unless the line that follows has bar
.