Usage
Usage: ack [OPTIONS]... PATTERN [FILES OR DIRECTORIES] Search for Default switches may be specified in the Example: ack -i select |
Searching
|
Ignore case distinctions in pattern |
|
Ignore case distinctions in pattern, but only if pattern contains no upper case Ignored if |
|
Invert match: select non-matching lines |
|
Force pattern to match only whole words |
|
Quote all metacharacters: pattern is literal |
Search Output
|
Only print |
|
Only print filenames containing matches |
|
Only print filenames with no matches |
|
Output the evaluation of expression for each line Turns off text highlighting. |
|
Show only the part of a line matching pattern |
|
Print all lines, whether matching or not |
|
Specify pattern explicitly. |
|
Stop searching in each file after |
|
Stop searching after one match of any kind |
|
Print the filename for each match This is the default unless explicitly searching a single file. |
|
Suppress the prefixing filename on output |
|
Show number of lines matching per file |
|
Show the column number of the first match |
|
Print |
|
Print |
|
Print The default is 2. |
|
Print null byte as separator between filenames Only works with |
|
Suppress error messages about nonexistent or unreadable files |
File Presentation
|
Pipe all ack output through For example, |
|
Do not send output through a pager Cancels any setting in |
|
Print a filename heading above each file's results The default is on, when used interactively. |
|
Print a break between results from different files The default is on, when used interactively. |
|
Same as |
|
Same as |
|
Highlight the matching text The default is on unless output is redirected, or on Windows. |
|
Set color for filenames |
|
Set color for matches |
|
Set color for line numbers |
|
Same as |
|
Flush output immediately, even when ack is used non-interactively (when output goes to a pipe or file) |
File Finding
|
Only print the files selected, without searching The |
|
Same as |
|
Sort the found files lexically |
|
Show which types each file has |
|
Read the list of files to search from |
|
Read the list of files to search from |
File Inclusion and Exclusion
|
Add or remove directory from the list of ignored directories |
|
Synonym for |
|
Add filter for ignoring files |
|
Recurse into subdirectories This is ack's default behavior. |
|
No descending into subdirectories |
|
Follow symlinks Default is off. |
|
Include only files with types that ack recognizes |
|
Include only files with the filetype |
|
Exclude files with the filetype See |
Miscellaneous
|
Ignore environment variables and global |
|
Specify an |
|
Ignore the default definitions that ack includes |
|
Outputs a default |
|
Display help |
|
Display all known types |
|
Dump information on which options are loaded from which RC files |
|
Force ack to treat standard input as a pipe |
|
Man page |
|
Display version and copyright |
|
Bill the Cat |
|
The warning admiral |
File Type Specification
|
Files with the given |
|
Files with the given |
|
Remove all filters associated with |
File Types
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|