LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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.

INSTALL

sudo apt install ugrep
copy
sudo dnf install ugrep
copy
sudo pacman -S ugrep
copy
sudo apk add ugrep
copy
sudo zypper install ugrep
copy
brew install ugrep
copy
nix profile install nixpkgs#ugrep
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid