From b2a6f9217b315546bb97165817d8a62b22a3ad4a Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 24 Jun 2021 12:34:48 +0200 Subject: [PATCH] Add examples to man page. --- man/epubgrep.1.adoc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man/epubgrep.1.adoc b/man/epubgrep.1.adoc index df44264..6857bf0 100644 --- a/man/epubgrep.1.adoc +++ b/man/epubgrep.1.adoc @@ -2,7 +2,7 @@ :doctype: manpage :Author: tastytea :Email: tastytea@tastytea.de -:Date: 2021-06-08 +:Date: 2021-06-24 :Revision: 0.0.0 :man source: epubgrep :man manual: General Commands Manual @@ -24,6 +24,20 @@ implemented and some additional switches are added. This manual is also available at . +== EXAMPLES + +.Search for Apple(s) or Orange(s) with 2 words of context around the matches, case insensitively +[source,shell] +-------------------------------------------------------------------------------- +epubgrep -PiC2 '(Apple|Orange)s?' file.epub +-------------------------------------------------------------------------------- + +.Extract external hyperlinks +[source,shell] +-------------------------------------------------------------------------------- +epubgrep -PC0 --raw --no-filename=all '"http[^"]+"' file.epub | tr -d '"' +-------------------------------------------------------------------------------- + == OPTIONS *-h*, *--help*::