-C, --context
Print NUM lines of output context; -NUM is the same.
An option of grepx.
Usage
grepx -C NUM PATTERNS [FILE]...
grepx --context=NUM PATTERNS [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-C | --context | NUM | print NUM lines of output context; -NUM is the same |
Examples
Ignore case and show two lines of context around each match
grepx -i -C 2 'timeout' server.logHelp in the terminal
gnux help grepx --context