mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2026-11-24 12:02:41 +01:00
Adds `--in` and `--in0` command-line options, which read files or directories to be searched from their arguments, as if they were specified on the command line. The value `-` means the list of files should be read from stdin. e.g. having a file `files.txt` with the following content: ``` foo.txt bar.txt ``` Then running `rg pattern --in files.txt` is *equivalent* to running `rg pattern foo.txt bar.txt`. `--in` reads from a text file (supporting LF and CRLF line terminators), while `--in0` reads from a null-delimited file. Both flags can be used multiple times. These features are designed for reusing input files and ripgrep calls chaining. Closes #273, Closes #3459