Skip to content

Zip Searching Not Working (MacOS) #3051

Answered by BurntSushi
mlw4428 asked this question in Q&A
Discussion options

You must be logged in to vote

From the man page, emphasis mine:

This flag instructs ripgrep to search in compressed files. Currently gzip,
bzip2, xz, LZ4, LZMA, Brotli and Zstd files are supported. This option
expects the decompression binaries (such as gzip) to be available in your
PATH. If the required bina‐ ries are not found, then ripgrep will not emit an
error messages by default. Use the --debug flag to see more information.

Note that this flag does not make ripgrep search archive formats as
directory trees. It only makes ripgrep detect compressed files and then
decompress them before searching their contents as it would any other file.

This overrides the --pre flag.

This flag can be disabled with --no-search-zip.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@mlw4428
Comment options

@BurntSushi
Comment options

@mlw4428
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants