ugrep is a command-line tool for searching files for text patterns, meant as a replacement for grep. It is aimed at developers and system administrators who search source trees, logs and document collections from a terminal. Beyond plain regular expressions, it offers Boolean queries with AND, OR and NOT, fuzzy matching and a text-based interface.
It can look inside archives such as zip, 7z, tar and cpio, including nested ones, and inside compressed files in formats like gz, bz2, xz and zstd. It also searches PDFs and some document formats and can print hexdumps. The source code is public under the BSD-3-Clause license, and the facts list it as a command-line program.
Alternatives to ugrep
Products that do a similar job in Developer Tools.
ripgrep
command-line search tool that finds regex matches across directory trees
television
command-line fuzzy finder with channels for files, text and shell history
gron
Command-line tool that flattens JSON into greppable lines
fq
jq-style queries and decoding for binary file formats
fzf
Command-line fuzzy finder for lists of files, history and any text
lazygit
Terminal UI for running git commands with keyboard shortcuts
Alacritty
GPU-accelerated terminal emulator for Linux, macOS, Windows and BSD
bat
command-line file viewer with syntax highlighting and git integration