Forrest logo
tool overview
On this page you find all important commands for the CLI tool ugrep. If the command you are looking for is missing please ask our AI.

ugrep

Ugrep is a command-line tool used for searching and pattern matching in files. It stands for "universal grep" and is an extended version of the classic grep tool.

With ugrep, you can search for specific patterns in files based on regular expressions, fixed strings, or fuzzy matching. It supports different modes, such as searching for complete words, exact phrases, or inverting search results.

One of the key features of ugrep is its speed. It is designed to efficiently search through large amounts of data with blazing-fast performance. It utilizes multi-threading and advanced algorithms to function quickly and effectively.

Ugrep is highly customizable, allowing users to specify different options and flags to modify the behavior of the search. It supports various output formats, including line numbers, file names, and byte offsets, making it easy to identify and locate the desired information.

The tool supports a wide range of file formats, including plain text, compressed archives, PDFs, and many programming languages. This versatility makes ugrep suitable for searching through different types of files in various contexts.

It has a user-friendly interface, offering colored output and interactive prompts for easy navigation and readability. Additionally, ugrep has extensive documentation that provides detailed information on its usage and the available options.

Ugrep is an open-source software licensed under the GNU General Public License (GPL). It is actively maintained and has a strong user community, ensuring ongoing development and support.

It supports multiple platforms, including Linux, macOS, FreeBSD, and Windows, making it accessible to a wide range of users.

The tool is widely used by developers, system administrators, and researchers who require a powerful search and pattern matching tool to quickly analyze and extract information from files.

Overall, ugrep is a versatile, fast, and feature-rich command-line tool that provides efficient searching and pattern matching capabilities for various file types.

List of commands for ugrep:

  • ugrep:tldr:0b56a ugrep: Search the current directory recursively for files containing a regex search pattern.
    $ ugrep "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:51b48 ugrep: Search only files whose filenames match a specific glob pattern.
    $ ugrep --glob="${glob_pattern}" "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:5ed04 ugrep: Also search compressed files, `zip` and `tar` archives recursively.
    $ ugrep --decompress "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:704e4 ugrep: Search in all files in the current directory recursively and print the name of each matching file.
    $ ugrep --files-with-matches "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:74697 ugrep: Fuzzy search files with up to 3 extra, missing or mismatching characters in the pattern.
    $ ugrep --fuzzy=${3} "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:b2c70 ugrep: Search in a specific file or in all files in a specific directory, showing line numbers of matches.
    $ ugrep --line-number "${search_pattern}" ${filename_or_directory}
    try on your machine
    explain this command
  • ugrep:tldr:e6306 ugrep: Search only C++ source files (use `--file-type=list` to list all file types).
    $ ugrep --file-type=cpp "${search_pattern}"
    try on your machine
    explain this command
  • ugrep:tldr:fad45 ugrep: Start a query TUI to search files in the current directory recursively (CTRL-Z for help).
    $ ugrep --query
    try on your machine
    explain this command
tool overview