add webi dat dat dat
[webi-installers/.git] / rg / README.md
1 ---
2 title: Ripgrep
3 homepage: https://github.com/BurntSushi/ripgrep
4 tagline: |
5   Ripgrep is a git and sourcecode-aware drop-in grep replacement.
6 ---
7
8 ## Updating `rg`
9
10 ```bash
11 webi rg@stable
12 ```
13
14 Use the `@beta` tag for pre-releases.
15
16 ## Cheat Sheet
17
18 > Ripgrep (`rg`) is smart. It's like grep if grep were built for code. It
19 > respects `.gitignore` and `.ignore`, has all of the sensible options you want
20 > (colors, numbers, etc) turned on by default, is written in Rust, and simply
21 > outperforms grep in every imaginable way. R.I.P. grep.
22
23 ```bash
24 rg <search-term> # searches recursively, ignoring .git, node_modules, etc
25 ```
26
27 ```bash
28 rg 'function doStuff'
29 ```
30
31 ```bash
32 rg 'doStuff\(.*\)'
33 ```