&tag(TheSilverSearcher);
*目次 [#k3990b8d]
#contents
*関連ページ [#be38567c]
*参考情報 [#c17a4107]
-[[ggreer/the_silver_searcher:https://github.com/ggreer/the_silver_searcher]]

*概要 [#ye2e6899]
-高速版"grep -r"

*使用方法 [#r96c53f3]
**簡単な使い方 [#v8f7deef]
-ディレクトリ以下を検索
 ag hoge

**ファイルタイプを指定して検索 [#we2d26c2]
-agコマンドの後ろに"ファイルタイプ"を指定することもできる
 ag --shell hoge

※ファイルタイプは以下のコマンドでリストアップすることができる。
 ag --list-file-types

**特定のファイルフォルダを無視する [#tfe03e10]
- "--ignore-dir"で無視するフォルダを指定できる。例えば"vendor/bundler"を無視したい場合以下のように指定する。
 ag --ignore-dir vendor/bundle  hoge


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS