diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2021-01-20 16:12:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2021-01-20 16:12:46 -0800 |
| commit | c46a8227d0bfc31e4f71b6441303348f5c31174b (patch) | |
| tree | a06e3747fa09c0d737f724000f0e516f9c853b32 /README.md | |
| parent | b50ad0cad099c99d4e739fc465b69779f661b77d (diff) | |
Added --skip flag for skipping over patterns
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,7 +20,8 @@ It's written in pure C with no dependencies. * `-j` `--json` print matches as JSON objects * `-l` `--list-files` print only filenames containing matches * `-p` `--pattern <pat>` provide a pattern (equivalent to `bp '\(<pat>)'`) -* `-r` `--replace <replacement>` replace the input pattern with the given replacement +* `-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) * `-g` `--grammar <grammar file>` use the specified file as a grammar * `-G` `--git` get filenames from git |
