mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-03-17 20:28:03 +02:00
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
ripgrep !!VERSION!!
|
|
Andrew Gallant <jamslam@gmail.com>
|
|
|
|
ripgrep (rg) recursively searches the current directory for lines matching
|
|
a regex pattern. By default, ripgrep will respect gitignore rules and
|
|
automatically skip hidden files/directories and binary files.
|
|
|
|
Use -h for short descriptions and --help for more details.
|
|
|
|
Project home page: https://github.com/BurntSushi/ripgrep
|
|
|
|
USAGE:
|
|
rg [OPTIONS] PATTERN [PATH ...]
|
|
rg [OPTIONS] -e PATTERN ... [PATH ...]
|
|
rg [OPTIONS] -f PATTERNFILE ... [PATH ...]
|
|
rg [OPTIONS] --files [PATH ...]
|
|
rg [OPTIONS] --type-list
|
|
command | rg [OPTIONS] PATTERN
|
|
rg [OPTIONS] --help
|
|
rg [OPTIONS] --version
|
|
|
|
POSITIONAL ARGUMENTS:
|
|
<PATTERN>
|
|
A regular expression used for searching. To match a pattern beginning
|
|
with a dash, use the -e/--regexp flag.
|
|
|
|
For example, to search for the literal '-foo', you can use this flag:
|
|
|
|
rg -e -foo
|
|
|
|
You can also use the special '--' delimiter to indicate that no more
|
|
flags will be provided. Namely, the following is equivalent to the
|
|
above:
|
|
|
|
rg -- -foo
|
|
|
|
<PATH>...
|
|
A file or directory to search. Directories are searched recursively.
|
|
File paths specified on the command line override glob and ignore
|
|
rules.
|
|
|
|
INPUT OPTIONS:
|
|
!!input!!
|
|
|
|
SEARCH OPTIONS:
|
|
!!search!!
|
|
|
|
FILTER OPTIONS:
|
|
!!filter!!
|
|
|
|
OUTPUT OPTIONS:
|
|
!!output!!
|
|
|
|
OUTPUT MODES:
|
|
!!output-modes!!
|
|
|
|
LOGGING OPTIONS:
|
|
!!logging!!
|
|
|
|
OTHER BEHAVIORS:
|
|
!!other-behaviors!!
|