mutool grep¶
The grep command searches for text in a document and prints each matching line.
mutool grep [options] pattern file [ file2 ...]
pattern
fileDocument to search in.
[options]
Basic options:
-ppasswordUse the specified password if the file is encrypted.
-GThe pattern is a regular expression.
-aIgnore diacritics and accents (treat ä and a as the same).
-iIgnore case (treat A and a as the same).
-HPrint filename for each match.
-nPrint page number for each patch.
Avanced options:
-SSee /reference/common/search-options.
-O-bSearch backwards, starting from the end.
-[start-markInsert mark at the start of each match when printing results.
-]end-markInsert mark at the end of each match when printing results.
-vShow verbose search debugging feedback.
-qHide all warnings and error messages. Use at your own risk!