Skip to content

A question about recursive directory searching #2367

Answered by BurntSushi
s-p-turner asked this question in Q&A
Discussion options

You must be logged in to vote

Do the beginning sentences of the README answer your question? Emphasis mine:

ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.)

A similar message is repeated in the GitHub description of the project and the man page.

Using * circumvents some of the filtering because the shell expands * before invoking rg. And regardless of what filters are enabled, ripgrep always searches whatever is explicitly given to it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by s-p-turner
Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

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