Add examples to man page.

This commit is contained in:
tastytea 2021-06-24 12:34:48 +02:00
parent babd7e4f61
commit b2a6f9217b
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 15 additions and 1 deletions

View File

@ -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
<https://man.schlomp.space/tastytea/?program=epubgrep>.
== 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*::