3 homepage: https://github.com/BurntSushi/ripgrep
5 Ripgrep is a git and sourcecode-aware drop-in grep replacement.
8 To update or switch versions, run `webi rg@stable` (or `@v13.0`, `@beta`, etc).
12 > Ripgrep (`rg`) is smart. It's like grep if grep were built for code. It
13 > respects `.gitignore` and `.ignore`, has all of the sensible options you want
14 > (colors, numbers, etc) turned on by default, is written in Rust, and typically
15 > outperforms grep in many use cases.
18 rg <search-term> # searches recursively, ignoring .git, node_modules, etc
31 Use `-v` to filter out all matches so that only non-matches are left.
34 rg 'bar' | rg -v 'foobar'
37 ### Disable Smart Filtering
39 By default `rg` respects `.gitignore`, `.ignore`, `.git/info/exclude` and
40 ignores many types of hidden files, dot files, etc.
42 You can use `-uu` to set all of the `--no-ignore-*` options and others.