grep
The classic Unix pattern matching utility
Search & Grep
C
GNU grep searches for patterns in files using regular expressions. The standard Unix tool for text pattern matching.
इंस्टॉल करें
apt
apt install grep
Demo
▶ GIF
grep — rg vs grep vs ag
@agentgif
▶ GIF
ag — rg vs grep vs ag
@agentgif
▶ GIF
ag "pattern" — search with the Silver Searcher
@agentgif
▶ GIF
rg "TODO" — search for TODO comments recursively
@agentgif
▶ GIF
ripgrep (rg) — Blazing Fast Regex Search
@agentgif
▶ GIF
rg 'config' src/ — ripgrep recursive search
@agentgif
▶ GIF
grep --color=always -E "error|warn" — highlight errors and warnings
@agentgif
▶ GIF
ag — The Silver Searcher
@agentgif
▶ GIF
grep -rn "TODO" . — recursive grep with line numbers
@agentgif
संबंधित टूल
ripgrep
Blazingly fast recursive search tool that respects gitignore
The Silver SearcherA code searching tool similar to ack, but faster
ast-grepA fast and polyglot tool for code structural search and rew…
ackA grep-like tool designed for searching source code
ugrepUltra fast grep with interactive TUI, fuzzy search, and more
sadCLI search and replace with preview, powered by diff
sdIntuitive find & replace CLI, a sed alternative