ユーザ用ツール

サイト用ツール


ripgrep

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
ripgrep [2023/03/03 01:18] nullponripgrep [2023/06/30 02:38] (現在) nullpon
行 21: 行 21:
 - `-uu` `--no-ignore --no-hidden`と同じ - `-uu` `--no-ignore --no-hidden`と同じ
 - `-uuu` `--no-ignore --no-hidden --binary`と同じ、grepコマンドの検索対象と同一 - `-uuu` `--no-ignore --no-hidden --binary`と同じ、grepコマンドの検索対象と同一
 +- `-p` `--color always --line-number --heading`と同じ 
 +- `-q` 結果を表示しない(指定の語句を含むファイルが存在するかどうかを終了コードで判定するために使う)
  
 結果をさらに加工するのに便利なオプション 結果をさらに加工するのに便利なオプション
行 28: 行 29:
 - `--no-filebame` ファイル名を出力しない - `--no-filebame` ファイル名を出力しない
 - `--no-line-number` 行番号を出力しない - `--no-line-number` 行番号を出力しない
 +
 +## pager(less)で表示
 +
 +```
 +rg -p nyan | less -R 
 +```
  
 </markdown> </markdown>
ripgrep.1677806328.txt.gz · 最終更新: 2023/03/03 01:18 by nullpon