rgrep

Recursively find patterns in files using regular expressions. Equivalent to grep -r. More information: <https://www.gnu.org/software/grep/manual/grep.html>.

Install

All systems
curl cmd.cat/rgrep.sh
Debian Debian
apt-get install grep
Ubuntu
apt-get install grep
Alpine
apk add grep
Arch Arch Linux
pacman -S grep
image/svg+xml Kali Linux
apt-get install grep
CentOS
yum install grep
Fedora
dnf install grep
Windows (WSL2)
sudo apt-get update sudo apt-get install grep
OS X
brew install grep
Raspbian
apt-get install grep
Docker
docker run cmd.cat/rgrep rgrep powered by Commando

Recursively find patterns in files using regular expressions. Equivalent to grep -r. More information: <https://www.gnu.org/software/grep/manual/grep.html>.

  • Recursively search for a pattern in the current working directory:
    rgrep "search_pattern"
  • Recursively search for a case-insensitive pattern in the current working directory:
    rgrep --ignore-case "search_pattern"
  • Recursively search for an extended regular expression pattern (supports `?`, `+`, `{}`, `()` and `|`) in the current working directory:
    rgrep --extended-regexp "search_pattern"
  • Recursively search for an exact string (disables regular expressions) in the current working directory:
    rgrep --fixed-strings "exact_string"
  • Recursively search for a pattern in a specified directory (or file):
    rgrep "search_pattern" path/to/file_or_directory

© tl;dr; authors and contributors