CmdID

CmdID / Commands

ag

The Silver Searcher. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

The Silver Searcher. Like ack, but aims to be faster.

Find files containing string, and print the line matches in context

ag stringIdentify

Find files containing string in a specific directory

ag string path/to/directoryIdentify

Find files containing string, but only list the filenames

ag --files-with-matches stringIdentify

Find files containing STRING case-insensitively, and print only the match, rather than the whole line

ag --ignore-case --only-matching STRINGIdentify

Find string in files with a name matching file_name

ag string --file-search-regex file_nameIdentify

Find files whose contents match a regex

ag '^ca(t'Identify

Find files with a name matching string

ag --filename-pattern stringIdentify