From 90a11dec5e5765af560d343e879869a60363ef54 Mon Sep 17 00:00:00 2001 From: Roman Proskuryakov Date: Tue, 28 Mar 2017 21:14:32 +0300 Subject: Add `-o/--only-matching` flag. Currently, the `--only-matching` flag conflicts with the `--replace` flag. In the future, this restriction may be relaxed. Fixes #34 --- doc/rg.1.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'doc') diff --git a/doc/rg.1.md b/doc/rg.1.md index 658eef6a..42191024 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -249,6 +249,10 @@ Project home page: https://github.com/BurntSushi/ripgrep a list of matching files such as with --count, --files-with-matches and --files. +-o, --only-matching +: Print only the matched (non-empty) parts of a matching line, with each such + part on a separate output line. + --path-separator *SEPARATOR* : The path separator to use when printing file paths. This defaults to your platform's path separator, which is / on Unix and \\ on Windows. This flag is -- cgit v1.2.3