ow NUM lines before each match. Show \fINUM\fP lines before each match. .sp This overrides the \flag{passthru} flag and partially overrides the \flag{context} flag. binaryno-binarySearch binary files. Enabling this flag will cause ripgrep to search binary files. By default, ripgrep attempts to automatically skip binary files in order to improve the relevance of results and make the search faster. .sp Binary files are heuristically detected based on whether they contain a \fBNUL\fP byte or not. By default (without this flag set), once a \fBNUL\fP byte is seen, ripgrep will stop searching the file. Usually, \fBNUL\fP bytes occur in the beginning of most binary files. If a \fBNUL\fP byte occurs after a match, then ripgrep will not print the match, stop searching that file, and emit a warning that some matches are being suppressed. .sp In contrast, when this flag is provided, ripgrep will continue searching a file even if a \fBNUL\fP byte is found. In particular, if a \fBNUL\fP byte is found then ripgrep will continue searching until either a match is found or the end of the file is reached, whichever comes sooner. If a match is found, then ripgrep will stop and print a warning saying that the search stopped prematurely. .sp If you want ripgrep to search a file without any special \fBNUL\fP byte handling at all (and potentially print binary data to stdout), then you should use the \flag{text} flag. .sp The \flag{binary} flag is a flag for controlling ripgrep's automatic filtering mechanism. As such, it does not need to be used when searching a file explicitly or when searching stdin. That is, it is only applicable when recursively searching a directory. .sp When the \flag{unrestricted} flag is provided for a third time, then this flag is automatically enabled. .sp This flag overrides the \flag{text} flag. block-bufferedno-block-bufferedForce block buffering. When enabled, ripgrep will use block buffering. That is, whenever a matching line is found, it will be written to an in-memory buffer and will not be written to stdout until the buffer reaches a certain size. This is the default when ripgrep's stdout is redirected to a pipeline or a file. When ripgrep's stdout is connected to a tty, line buffering will be used by default. Forcing block buffering can be useful when dumping a large amount of contents to a tty. .sp This overrides the \flag{line-buffered} flag. byte-offsetno-byte-offsetPrint the byte offset for each matching line. Print the 0-based byte offset within the input file before each line of output. If \flag{only-matching} is specified, print the offset of the matched text itself. .sp If ripgrep does transcoding, then the byte offset is in terms of the result of transcoding and not the original data. This applies similarly to other transformations on the data, such as decompression or a \flag{pre} filter. case-sensitiveSearch case sensitively (default). Execute the search case sensitively. This is the default mode. .sp This is a global option that applies to all patterns given to ripgrep. Individual patterns can still be matched case insensitively by using inline regex flags. For example, \fB(?i)abc\fP will match \fBabc\fP case insensitively even when this flag is used. .sp This flag overrides the \flag{ignore-case} and \flag{smart-case} flags. flag has no negation