ag: add Japanese translation (#9233)

pull/1/head
Reo Uehara 2022-10-26 14:11:49 +09:00 committed by GitHub
parent b3b3c8c46a
commit 005b4e6576
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

32
pages.ja/common/ag.md Normal file
View File

@ -0,0 +1,32 @@
# ag
> Silver Searcher と呼ばれます。ack コマンドに似ていますが、より高速化を目指したコマンドです。
> 詳しくはこちら: <https://github.com/ggreer/the_silver_searcher>.
- "foo"という文字列が含まれるファイルを検索し、コンテキスト内でマッチした行を出力する:
`ag {{foo}}`
- 特定のディレクトリ内で、"foo"という文字列が含まれるファイルを検索する:
`ag {{foo}} {{ディレクトリパス}}`
- "foo"という文字列が含まれるファイルの一覧をリストアップする:
`ag -l {{foo}}`
- 大文字と小文字を区別せずに、"FOO"という文字列が含まれるファイルを検索し、マッチした行のみ出力する:
`ag -i -o {{FOO}}`
- "bar"という名前にマッチするファイルから、"foo"という文字列を検索する:
`ag {{foo}} -G {{bar}}`
- 正規表現にマッチするコンテンツが含まれるファイルを検索する:
`ag '{{^ba(r|z)$}}'`
- ファイル名が "foo" に一致するファイルを検索する:
`ag -g {{foo}}`