zzgrep [ option ... ] [ - ] regex file-or-dir ...
Reads file or all files under dir and prints all lines which contain matches of the regex.
zzgrep [ option ... ] regex
Reads STDIN and prints all lines which contain matches of the regex.


Print this text and terminate.

File Selection:

By default directory members are sorted lexicographically in order to achieve deterministic results.
--look-into glob
Look into compressed and archive contents if "format:path" matches the glob. The default is to look into any recognised archive or compressed contents.
Supported archive formats in this runtime configuration are:
Supported compression formats in this runtime configuration are:
--exclude regex
--include regex
Excludes files and archive entries from the search iff the file's / archive entry's path matches the regex.

Any number of --exclude and --include options can be given, and later take precedence over the earlier.

The default is that all files and archive entries are included; thus you would always begin with a --exclude option.

Deprecated - Use --look-into instead.

Contents Processing:

--encoding charset
Contents encoding, default is "${file.encoding}".
Ignore case distinctions.
Select non-matching lines.
Disassemble .class files on-the-fly.
Don't print line numbers in the disassembly.
Don't print variable names in the disassembly.

Output Generation:

Print only names of files containing matches.
Suppress all normal output.
Suppress all messages except errors.
Print verbose messages.
Print verbose and debug messages.
--log level:logger:handler:formatter:format
Add logging at level FINE on logger "de.unkrig" to STDERR using the FormatFormatter and SIMPLE format, or the given arguments (which are all optional).

Example globs:

File "file" in directory "dir"
Compressed file "file.gz"!dir/file
Entry "dir/file" in archive file "dir/"
Entry "dir/file" in the compressed archive file "file.tar.gz"
File "x" in an immediate subdirectory
File "x" in any subdirectory
File "x" in any subdirectory, or any entry "**/x" in any archive file in any subdirectory
File "a" and entry "dir/b" in archive file "dir/file.7z"
Files that don't end with ".c"
Files that don't end with ".c" or ".h"
"foo.c" plus all files that don't end with ".c" or ".h"

Exit status is 0 if any line was selected, 1 otherwise; if any error occurs, the exit status is 2.