LinuxCommandLibrary

ugrep

Ultra-fast grep with interactive query mode

TLDR

Search pattern

$ ugrep "[pattern]" [file]
copy
Recursive search
$ ugrep -r "[pattern]"
copy
Interactive mode
$ ugrep -Q "[pattern]"
copy
Search archives
$ ugrep -z "[pattern]" [archive.zip]
copy
Boolean query
$ ugrep "[word1] AND [word2]"
copy
Fuzzy matching
$ ugrep -Z "[pattern]" [file]
copy

SYNOPSIS

ugrep [-r] [-Q] [-z] [-Z] [options] pattern [files]

DESCRIPTION

ugrep is a high-performance text search tool designed as a modern replacement for grep with extended capabilities. It provides an interactive query mode with real-time results, Boolean search operators (AND, OR, NOT), fuzzy matching for approximate patterns, and the ability to search inside compressed archives and binary files.
The tool is grep-compatible and supports POSIX, Perl, and fixed-string pattern syntax. It can search recursively through directories with file type filtering, output results in various formats including JSON and CSV, and display context around matches.
Archive searching handles ZIP, tar, gzip, bzip2, and other compressed formats transparently. The interactive query UI (invoked via the ug alias) allows refining searches in real time.

PARAMETERS

-r

Recursive.
-Q
Interactive TUI.
-z
Search archives.
-Z
Fuzzy matching.
-i
Case insensitive.
--bool
Boolean queries.

CAVEATS

Different from grep. More features. C++ implementation.

HISTORY

ugrep was created as a fast, feature-rich grep replacement with interactive and fuzzy search capabilities.

SEE ALSO

grep(1), rg(1), ag(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community