Find Duplicates

Alternatives to popular CLI tools: grep

This article spotlights alternative tools to grep.

grep is a useful command to search for matching patterns in a file. If you are a system admin who needs to scrape through log files or a developer trying to find matches in a code file, grep is a powerful command to use.

Excerpt from man page for grep

The software featured here is free and published under an open source license. All tools provide a command-line interface (CLI) unless otherwise stated.

Alternatives to grep
ugrepUltra fast grep with interactive - Top 100 TUI apps
ripgrepRecursively search directories for a regex pattern - Top 100 CLI apps
siftFast and powerful alternative to grep
The Silver SearcherCode-searching tool similar to ack, but faster
ackgrep-like source code search tool
CGrepContext-aware grep for source codes
ngrepgrep applied to the network layer
vgrepPager for grep, git-grep, ripgrep and similar grep implementations
xlsxgrepTool to search text in XLSX, XLS, CSV, TSV and ODS files
bingrepgrep-like tool for binaries
ucggrep-like tool specialized for searching large bodies of source code
pruPipeable Ruby
phpgrepSyntax-aware grep for PHP code
rzgrepgrep for stuff in archives that are embedded within archives
skimGeneral-purpose fuzzy finder
ruplacerFind and replace text in source files
ClapgrepGUI tool which offers ripgrep based full-text searches
repgrepInteractive replacer for ripgrep
w2vgrepSemantic grep tool
ast-grepPerforms structural search, lint and rewriting
serplTUI to search and replace keywords
grokTool like UNIX grep on steroids
osgrepNatural-language search that works like grep
hgrepgrep with human-friendly search output
mgrepSemantically grep everything
demongrepFast, local semantic code search
ckSemantic code search
ferpClone of grep, but written in modern Fortran
krepOptimized string search utility
Have we missed any open source alternatives to grep? Please let us know!
0
Other alternative tools to grepx

All the CLI tools in this series.

Alternatives to CLI tools
age // awk // bc // cal // cat // cd // chmod // cksum // cloc // cmp // compress // cp // cron // curl // cut // date // dd // df // diff // dig // du // fdisk // file // find // free // ftp // grep // gzip // hexdump // history // jq // kill // less // locate // ls // lsof // make // man // more // mv / ping // ps // psql // rename // rm // sed // split // ssh // stow // strings // sudo // sysctl // tail // talk // tar // telnet // time // top // touch // traceroute // tree // uname // uniq // uptime // vi // watch // Wget // who // whois // xargs

Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Know a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
4 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Daniel James
Daniel James
2 years ago

Instead of using grep, I use skim. It’s a neat fuzzy finder.

yudho bayu waskito
yudho bayu waskito
1 year ago
  • DocFetcher: A desktop search application that indexes file contents, making it easy to search for text within documents.