ugrep
Ultra fast grep with interactive query TUI, Boolean search, fuzzy search, and more: search file systems, Unicode text files (UTF-8/16/32), binary files to view hexdumps, source code, (nested) archives (cpio/tar/pax/zip), compressed files (zip/gz/Z/bz2/xz/lzma/lz4/zstd), documents and more. Search for anything in everything... fast!
Spontaneous compliments and kudos
"Ugrep belongs on every computer. It replaces and complements the standard commands quite excellently, and anyone who has to deal with text searches should familiarize themselves with it. The incremental search alone is so useful that it more than justifies the minimal training time."
- Linux Magazine April 2021
"Impressive work! And thanks for an amazing writeup, again! This is already my go to search-tool, and it just keeps on getting better. Well done." -RuneBergh on GitHub
"ugrep is fantastic!!!! kudos!!!!" -paoloschi on GitHub
"Many thanks for your prompt help. And congratulations on an impressively-featured utility." -ISO8807 on GitHub
"ugrep is by far the fastest grep for searching compressed logs now. Impressive." -RuneBergh on GitHub
"Thank you for the amazing tool!" -shmidt on GitHub
What is ugrep?
Ugrep is a high-performance file system search utility. Not only is ugrep ultra fast, ugrep has much more to offer than GNU/BSD grep and other grep-like utilities:
ugrep | GNU grep | BSD grep | |
Open source license | BSD | GPL | BSD |
ultra fast search with avx/sse2, threads, etc. | yes | no | no |
support fast indexed-based search | yes | no | no |
interactive search query TUI | yes | no | no |
Boolean search queries with AND, OR, NOT | yes | no | no |
fuzzy (approximate) search | yes | no | no |
Unicode text search (UTF-8, UTF-16, UTF-32) | yes | no | no |
file encodings ISO-8859-1 to 16, CP850, KOI8, etc. | yes | no | no |
search files by file types, e.g. scripts and source code | yes | no | no |
search files while ignoring files specified in .gitignore | yes | no | no |
search files stored in cpio, tar, pax, and zip archives | yes | no | no |
search compressed files (.zip, .gz, .Z, .bz, .bz2, .xz, .lzma, .lz4, .zstd) | yes | no | .gz |
search documents (pdf, doc, docx, etc.) using filters | yes | no | no |
search binary files and output hexdumps for matches | yes | no | no |
search files by filename extensions and magic bytes | yes | no | no |
custom output options (CSV, JSON, XML) | yes | no | no |
user-specified custom output formatting | yes | no | no |
sort output by file name, size, and time used/changed/created | yes | no | no |
gitignore-style globs to select files to search | yes | no | no |
match patterns across newlines | yes | no | no |
skip unwanted matches with negative patterns | yes | no | no |
match replacement | yes | no | no |
predefined patterns to quickly search source code | yes | no | no |
User Guide
To view the user guide and to install ugrep, please visit ugrep.com