Skip to content

clarification about ripgrep functionality and possible example #1579

Answered by BurntSushi
atereou asked this question in General
Discussion options

You must be logged in to vote

When I now run CMD in the 'search' folder, is there a command for ripgrep that will process the whole 'search' folder with subfolders?

You should just be able to run .\rg.exe "E X I T H E L P" and it will recursively search your current directory. If you only want to search exe files, then you can add -g "*.exe". Presumably, exe files are in a binary format, so you'll probably also need to force ripgrep to treat it as text, which means using the -a (short for --text). So I think your complete command is probably:

$ .\rg.exe -g "*.exe" -a "E X I T  H E L P"

Note though that I am not a Windows user.

Replies: 1 comment 4 replies

Comment options

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

@BurntSushi
Comment options

@atereou
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
Labels
None yet
2 participants