From d107ce5c31fc675dfd43f5a8cef8b058b02e56bd Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 26 May 2021 20:19:09 +0200 Subject: [PATCH] Modify config file example. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's not a good idea to specify “perl-regexp” in the config file, because it can not be overriden yet. 😊 --- man/epubgrep.1.adoc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/man/epubgrep.1.adoc b/man/epubgrep.1.adoc index 53405c7..c5c4442 100644 --- a/man/epubgrep.1.adoc +++ b/man/epubgrep.1.adoc @@ -93,14 +93,16 @@ occur more than once are merged. ==== Example configuration file -This example makes epubgrep always use Perl regular expressions and search for -mentions of the words thyme and oregano in every book. +This example makes epubgrep always suppress the file names on output, print 2 +words of context around matches (unless overridden on the command line) and +search for mentions of the words thyme and oregano in every book. [source,cfg] -------------------------------------------------------------------------------- -perl-regexp = 1 -regexp = \b[Tt]hyme\b -regexp = \b[Oo]regano\b +no-filename +context = 2 +regexp = [Tt]hyme +regexp = [Oo]regano -------------------------------------------------------------------------------- // == EXAMPLES