AG(1) AG(1) (NAME) ag - grep (The Silver Searcher) (SYNOPSIS) ag [] [ ...] (DESCRIPTION) . grep ack . (OPTIONS) --ackmate AckMate https://github.com/protocool/AckMate. --[no]affinity (affinity) . true . --agrc= $AGRC $HOME/.agrc . agrc --no-agrc . AGRC . -a --all-types . (ignore) . -A --after[=] . . -B --before[=] . . --[no]break . . -c --count . : . wc -l . --[no]color . . --color-line-number . 1;33 . --color-match . 30;43 . --color-path . 1;32 . --column . -C --context[=] . . -D --debug (). . --depth= -1 . . -E --extension= . -j -G '\.EXT$' ( ). --[no]filename . . -f --[no]follow (symlinks). false . -F --fixed-strings --literal grep. --[no]group --group . --nogroup . -g --filename-pattern= . -G --file-search-regex= . -H --[no]heading . --help-types --list-file-types ack. --hidden . (ignore) . -I --ignore= . . --ignore-dir= --ignore ack. -i --ignore-case ( ). -j --just-filename ( -g -G) . -l --files-with-matches . . -L --files-without-matches . --list-file-types (FILE TYPES) . -m --max-count= . 0 . --[no]mmap / (mmap). mmap() read() true ( macOS). --[no]multiline ( ). . -n --norecurse . --[no]numbers . (streams) . -o --only-matching . --one-device . . . -p --path-to-ignore= ignore. . -P --pager= (pager) less. --nopager . (pipe) . : PAGER "less". --parallel . GNU parallel . : echo "foo\nbar\nbaz" | parallel "ag {} ." ag "foo" "bar" "baz" . --print-long-lines ( 2k ). --passthrough --passthru . -Q --literal (regex). . -q --silent . -r --recurse . true . -s --case-sensitive . -S --smart-case . . --search-binary . --stats ( ). --stats-only ( ) . -t --all-text . . -u --unrestricted . ignore. gitignore. . -U --skip-vcs-ignores ignore ( gitignore. hgignore.) ignore.. -v --invert-match . -V --version . --vimgrep :vimgrep /pattern/g Vim. vimrc./~: set grepprg=ag\ --vimgrep\ $* set grepformat=%f:%l:%c:%m :grep :copen :cn :cp . -w --word-regexp . --workers= () . (CPU) . -W --width= . -X --invert-file-search-regex= -G . . -z --search-zip . gz xz . ag lzma zlib . -Z --null-lines NULL (\0) \n. /proc/pid/environ . \n . ( ) . regex ( PCRE ). -0 --null --print0 \0 \n: xargs -0 . (FILE TYPES) . --html htm html shtml xhtml . ag --list-file-types . (IGNORING FILES) ag gitignore. hgignore. ignore. . . . ag $HOME/.agignore . gitignore. hgignore. ignore. -U . -t -a -u . (AGRC) "" ag "agrc" . "agrc" : ) --agrc= ) AGRC ) $HOME/.agrc. --noagrc "agrc" . "agrc" . . --option=value --option value . (EXAMPLES) ag printf: "printf" . ag foo /bar/: "foo" /bar/. ag -- --foo: "--foo" . ( "--" .) (ABOUT) ag Geoff Greer . ( ) http://geoff.greer.fm/ag . Allen Wild ag PCRE : https://github.com/aswild/the_silver_searcher (SEE ALSO) grep(1) May 2020 AG(1)