ack
Website: https://beyondgrep.com
Project: https://github.com/beyondgrep/ack3
Author: Andy Lester
Alternative to: grep
Language: Perl
This page last updated:
ack is a tool designed as a replacement for 99% of the uses of grep.
It is faster, more portable, and friendlier to the programmer. By default,
ack only searches source files — skipping .git, binary files, and other
clutter you never want to search anyway.
Why ack?
- Searches only relevant source files by default
- No need to specify file extensions — ack knows what source code looks like
- Perl-compatible regular expressions
- Readable output with file names and line numbers grouped together
Basic usage
ack pattern
ack --perl pattern # Search only Perl files.
ack -l pattern # List only matching filenames.
ack -i pattern # Case-insensitive search.