Forrest logo
back to context overview

ag

List of commands for ag:

  • ag:tldr:2a71d ag: Find files containing "foo" in a specific directory.
    $ ag ${foo} ${path-to-directory}
    try on your machine
    explain this command
  • ag:tldr:2cbb8 ag: Find "foo" in files with a name matching "bar".
    $ ag ${foo} -G ${bar}
    try on your machine
    explain this command
  • ag:tldr:3473a ag: Find files with a name matching "foo".
    $ ag -g ${foo}
    try on your machine
    explain this command
  • ag:tldr:8e025 ag: Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line.
    $ ag -i -o ${FOO}
    try on your machine
    explain this command
  • ag:tldr:b2d2b ag: Find files containing "foo", and print the line matches in context.
    $ ag ${foo}
    try on your machine
    explain this command
  • ag:tldr:f298d ag: Find files containing "foo", but only list the filenames.
    $ ag -l ${foo}
    try on your machine
    explain this command
back to context overview