diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-08-02 12:25:52 -0700 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-08-02 12:25:52 -0700 |
| commit | 70f7f8c4958b6458708187278f9a8fbca34ef542 (patch) | |
| tree | 452d0389137257e805daaa97cba0562321358d48 /README.md | |
| parent | db3c88d16b709a622fff390734f387693349341f (diff) | |
Added -B and -A options to match grep
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,7 +22,9 @@ It's written in pure C with no dependencies. * `-p` `--pattern <pat>` provide a pattern (equivalent to `bp '\(<pat>)'`) * `-r` `--replace <replacement>` replace the input pattern with the given replacement * `-s` `--skip <skip pattern>` skip over the given pattern when looking for matches -* `-C` `--context <N>` change how many lines of context are printed (`0`: no context, `all`: the whole file, `<N>` matching lines and `<N-1>` lines before/after) +* `-B` `--context-before <N>` change how many lines of context are printed before each match +* `-B` `--context-after <N>` change how many lines of context are printed after each match +* `-C` `--context <N>` change how many lines of context are printed before and after each match * `-g` `--grammar <grammar file>` use the specified file as a grammar * `-G` `--git` get filenames from git * `-f` `--format` `auto|plain|fancy` set the output format (`fancy` includes colors and line numbers) |
