Help: grep

The "grep" command:

Usage: fossil grep [OPTIONS] PATTERN FILENAME ...

Attempt to match the given POSIX extended regular expression PATTERN over all historic versions of FILENAME. The search begins with the most recent version of the file and moves backwards in time. Multiple FILENAMEs can be specified, in which case all named files are searched in reverse chronological order.

For details of the supported regular expression dialect, see


Suppress normal output; instead print a count of the number of matching files
Ignore case
List only hash for each match
Stop searching after the first match
Suppress error messages about nonexistent or unreadable files
Invert the sense of matching. Show only files that have no matches. Implies -l
Show each file as it is analyzed