As most of the tools grep/awk are line based I'm not sure how to find a pattern in a file which goes over multiple lines, without truncating or changing the file before.
What's the most effective way to find the exact pattern which contains out of 2 lines without a regex like .*\n within a sed:
cgrep shows context of matching patterns found in files (man)
Path : ~/executable/cgrep
Type : ELF 64-bit LSB executable, x86-64, version 1 (SYSV ...)
peg Perl version of grep, q.v. (what)
Path : ~/bin/peg
Length : 4749 lines
Type : Perl script, ASCII text executable
Shebang : #!/usr/bin/env perl
Help : probably available with --help
bool print context matching a boolean expression (man)
Path : ~/executable/bool
Type : ELF 64-bit LSB executable, x86-64, version 1 (SYSV ...)
Help : probably available with [ ]-h,--help
gogrep Match, grep-like, alternate name for "sift" (man)
Path : ~/executable/gogrep
Type : ELF 64-bit LSB executable, x86-64, version 1 (SYSV ...)
Help : probably available with --help