From c46a8227d0bfc31e4f71b6441303348f5c31174b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 20 Jan 2021 16:12:46 -0800 Subject: Added --skip flag for skipping over patterns --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1bf5301..0453771 100644 --- a/README.md +++ b/README.md @@ -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 ` provide a pattern (equivalent to `bp '\()'`) -* `-r` `--replace ` replace the input pattern with the given replacement +* `-r` `--replace ` replace the input pattern with the given replacement +* `-s` `--skip ` skip over the given pattern when looking for matches * `-c` `--context ` change how many lines of context are printed (`0`: no context, `all`: the whole file, `` matching lines and `` lines before/after) * `-g` `--grammar ` use the specified file as a grammar * `-G` `--git` get filenames from git -- cgit v1.2.3