ripgrep
Install
dnf install snapd systemctl enable snapd systemctl start snapd ln -s /var/lib/snapd/snap snap install ripgrep --classic #snap install certbot --classic
rg --type-list rg --files rg 'hexo\w*' README.md rg -v 'hexo' README.md rg -w 'github.com' ./ rg -w 'github.com' ./ -l 只搜索过文件名 rg cache . -tphp rg cache . -Tphp rg 'function bind' --type js rg 'function bind' -g '*.js' rg 'function bind' -g '*.[js,css}' rg -e 'tou.*ist' ./ 正则表达式搜索 rg 'hexo\w*' README.md -C2 上下两行的内容
先安装 RUST curl https://sh.rustup.rs -sSf | sh 用 RUST 安装 ripgrep git clone https://github.com/BurntSushi/ripgrep cd ripgrep cargo build --release cp ./target/release/rg /usr/local/bin/