ag
Verified for current stable LTS
Ag Commands
Ag command syntax with verified terminal examples.
Commands
14 commands for Ag
ag Search
Ag Command: Search For String
ag string ag Search
Ag Command: Search For String Case Insensitively
ag -i -o STRING ag Search
Ag Command: Search For Filename Pattern
ag -g string ag Search
Ag Command: Search For String In Directory
ag string <path/to/directory> ag Search
Ag Command: List Filenames With Matches
ag -l string ag Search
Ag Command: Search For String With File Name Regex
ag string -G file_name ag Search
Ag Command: Search With Regex
ag '<^ca(t|r)$>' ag Search
Ag Command: Search In Context
ag string ag Search
Ag Command: Search By Filename Pattern
ag string -G file_name ag Search
Ag Command: Search In Directory
ag string <path/to/directory> ag Search
Ag Command: List Filenames With Matches
ag -l string ag Search
Ag Command: Case Insensitive Only Matching
ag -i -o STRING ag Search
Ag Command: Search Contents With Regex
ag '<^ca(t|r)$>' ag Search
Ag Command: Search By Filename
ag -g string Suggest a Ag Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Ag workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.