# apt-get install cargo
$ git clone https://github.com/BurntSushi/ripgrep.git $ cd ripgrep $ git co refs/tags/0.9.0
$ cargo build --release
$ ./target/release/rg --version
| option (ripgrep) | option (grep) | description |
|---|---|---|
| <pattern> | <pattern> | match or unmatch pattern |
| -e <pattern> | -e <pattern> | <pattern> をパターンとして指定する(POSIXに準拠) |
| -f <file> | -f <file> | パターンを <file> から1行を1パターンとして読み込む |
| -H | -H | 検索結果にファイル名を付加する |
| -h | --help | ヘルプを表示 |
| --no-filename | -h | 検索結果にファイル名を付加しない |
| -i <file-path> | -i <file-path> | <file-path> で指定されたファイルを検索対象から除く |
| -n | -n | 検索結果に行番号を付加する |
| -N | 検索結果に行番号を付加しない | |
| -q | -q | 標準出力に何も出力しない |
| -t <TYPE> | ファイルタイプが<TYPE> のものを検索対象にする | |
| -v | -v | <pattern> で指定された文字列を含まないものを検索する |