en multiline search is enabled. .sp There is no limit on the number of the lines that a single match can span. .sp \fBWARNING\fP: Because of how the underlying regex engine works, multiline searches may be slower than normal line-oriented searches, and they may also use more memory. In particular, when multiline mode is enabled, ripgrep requires that each file it searches is laid out contiguously in memory (either by reading it onto the heap or by memory-mapping it). Things that cannot be memory-mapped (such as \fBstdin\fP) will be consumed until EOF before searching can begin. In general, ripgrep will only do these things when necessary. Specifically, if the \flag{multiline} flag is provided but the regex does not contain patterns that would match \fB\\n\fP characters, then ripgrep will automatically avoid reading each file into memory before searching it. Nevertheless, if you only care about matches spanning at most one line, then it is always better to disable multiline mode. .sp This overrides the \flag{stop-on-nonmatch} flag. multiline-dotallno-multiline-dotallMake '.' match line terminators. This flag enables "dot all" mode in all regex patterns. This causes \fB.\fP to match line terminators when multiline searching is enabled. This flag has no effect if multiline searching isn't enabled with the \flag{multiline} flag. .sp Normally, a \fB.\fP will match any character except line terminators. While this behavior typically isn't relevant for line-oriented matching (since matches can span at most one line), this can be useful when searching with the \flag{multiline} flag. By default, multiline mode runs without "dot all" mode enabled. .sp This flag is generally intended to be used in an alias or your ripgrep config file if you prefer "dot all" semantics by default. Note that regardless of whether this flag is used, "dot all" semantics can still be controlled via inline flags in the regex pattern itself, e.g., \fB(?s:.)\fP always enables "dot all" whereas \fB(?-s:.)\fP always disables "dot all". Moreover, you can use character classes like \fB\\p{any}\fP to match any Unicode codepoint regardless of whether "dot all" mode is enabled or not. no-configNever read configuration files. When set, ripgrep will never read configuration files. When this flag is present, ripgrep will not respect the \fBRIPGREP_CONFIG_PATH\fP environment variable. .sp If ripgrep ever grows a feature to automatically read configuration files in pre-defined locations, then this flag will also disable that behavior as well. no-ignoreignoreDon't use ignore files. When set, ignore files such as \fB.gitignore\fP, \fB.ignore\fP and \fB.rgignore\fP will not be respected. This implies \flag{no-ignore-dot}, \flag{no-ignore-exclude}, \flag{no-ignore-global}, \flag{no-ignore-parent} and \flag{no-ignore-vcs}. .sp This does not imply \flag{no-ignore-files}, since \flag{ignore-file} is specified explicitly as a command line argument. .sp When given only once, the \flag{unrestricted} flag is identical in behavior to this flag and can be considered an alias. However, subsequent \flag{unrestricted} flags have additional effects. no-ignore-dotignore-dotDon't use .ignore or .rgignore files. Don't respect filter rules from \fB.ignore\fP or \fB.rgignore\fP files. .sp This does not impact whether ripgrep will ignore files and directories whose names begin with a dot. For that, see the \flag{hidden} flag. This flag also does not impact whether filter rules from \fB.gitignore\fP files are respected. no-ignore-excludeignore-excludeDon't use local exclusion files. Don't respect filter rules from files that are manually configured for the repository. For example, this includes \fBgit\fP's \fB.git/info/exclude\fP. no-ignore-filesignore-filesDon't use --ignore-file arguments. When set, any \flag{ignore-file} flags, even ones that come after this flag, are ignored. no-ignore-globalignore-globalDon't use global ignore files. Don't respect filter rules from ignore files that come from "global" sources such as \fBgit\fP's \fBcore.excludesFile\fP configuration option (which defaults to \fB$HOME/.config/git/ignore\fP). no-ignore-messagesignore-messagesSuppress gitignore parse error messages. When this flag is enabled, all error messages related to parsing ignore files are suppressed. By default, error messages are printed to stderr. In cases where these errors are expected, this flag can be used to avoid seeing the noise produced by the messages. no-ignore-parentignore-parentDon't use ignore files in parent directories. When this flag is set, filter rules from ignore files found in parent directories are not respected. By default, ripgrep will ascend the parent directories of the current working directory to look for any applicable ignore files that should be applied. In some cases this may not be desirable. no-ignore-vcsignore-vcsDon't use ignore files from source control. When given, filter rules from source control ignore files (e.g., \fB.gitignore\fP) are not respected. By default, ripgrep respects \fBgit\fP's ignore rules for automatic filtering. In some cases, it may not be desirable to respect the source control's ignore rules and instead only respect rules in \fB.ignore\fP or \fB.rgignore\fP. .sp This flag implies \flag{no-ignore-parent} for source control ignore files as well. no-messagesmessagesSuppress some error messages. This flag suppresses some error messages. Specifically, messages related to the failed opening and reading of files. Error messages related to the syntax of the pattern are still shown. no-pcre2-unicodepcre2-unicode(DEPRECATED) Disable Unicode mode for PCRE2. DEPRECATED. Use \flag{no-unicode} instead. .sp Note that Unicode mode is enabled by default. no-require-gitrequire-gitUse .gitignore outside of git repositories. When this flag is given, source control ignore files such as \fB.gitignore\fP are respected even if no \fBgit\fP repository is present. .sp By default, ripgrep will only respect filter rules from source control ignore files when ripgrep detects that the search is executed inside a source control repository. For example, when a \fB.git\fP directory is observed. .sp This flag relaxes the default restriction. For example, it might be useful when the contents of a \fBgit\fP repository are stored or copied somewhere, but where the repository state is absent. no-unicodeunicodeDisable Unicode mode. This flag disables Unicode mode for all patterns given to ripgrep. .sp By default, ripgrep will enable "Unicode mode" in all of its regexes. This has a number of consequences: .sp .IP \(bu 3n \fB.\fP will only match valid UTF-8 encoded Unicode scalar values. .sp .IP \(bu 3n Classes like \fB\\w\fP, \fB\\s\fP, \fB\\d\fP are all Unicode aware and much bigger than their ASCII only versions. .sp .IP \(bu 3n Case insensitive matching will use Unicode case folding. .sp .IP \(bu 3n A large array of classes like \fB\\p{Emoji}\fP are available. (Although the specific set of classes available varies based on the regex engine. In general, the default regex engine has more classes available to it.) .sp .IP \(bu 3n Word boundaries (\fB\\b\fP and \fB\\B\fP) use the Unicode definition of a word character. .PP In some cases it can be desirable to turn these things off. This flag will do exactly that. For example, Unicode mode can sometimes have a negative impact on performance, especially when things like \fB\\w\fP are used frequently (including via bounded repetitions like \fB\\w{100}\fP) when only their ASCII interpretation is needed. nullPrint a NUL byte after file paths. Whenever a file path is printed, follow it with a \fBNUL\fP byte. This includes printing file paths before matches, and when printing a list of matching files such as with \flag{count}, \flag{files-with-matches} and \flag{files}. This option is useful for use with \fBxargs\fP. null-dataUse NUL as a line terminator. Enabling this flag causes ripgrep to use \fBNUL\fP as a line terminator instead of the default of \fP\\n\fP. .sp This is useful when searching large binary files that would otherwise have very long lines if \fB\\n\fP were used as the line terminator. In particular, ripgrep requires that, at a minimum, each line must fit into memory. Using \fBNUL\fP instead can be a useful stopgap to keep memory requirements low and avoid OOM (out of memory) conditions. .sp This is also useful for processing NUL delimited data, such as that emitted when using ripgrep's \flag{null} flag or \fBfind\fP's \fB\-\-print0\fP flag. .sp Using this flag implies \flag{text}. It also overrides \flag{crlf}. one-file-systemno-one-file-systemSkip directories on other file systems. When enabled, ripgrep will not cross file system boundaries relative to where the search started from. .sp Note that this applies to each path argument given to ripgrep. For example, in the command .sp .EX rg \-\-one\-file\-system /foo/bar /quux/baz .EE .sp ripgrep will search both \fI/foo/bar\fP and \fI/quux/baz\fP even if they are on different file systems, but will not cross a file system boundary when traversing each path's directory tree. .sp This is similar to \fBfind\fP's \fB\-xdev\fP or \fB\-mount\fP flag. only-matchingPrint only matched parts of a line. Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line. path-separatorSet the path separator for printing paths. Set the path separator to use when printing file paths. This defaults to your platform's path separator, which is \fB/\fP on Unix and \fB\\\fP on Windows. This flag is intended for overriding the default when the environment demands it (e.g., cygwin). A path separator is limited to a single byte. .sp Setting this flag to an empty string reverts it to its default behavior. That is, the path separator is automatically chosen based on the environment. passthrupassthrough