ripgrep for MAC

Free, open-source command-line search tool that finds text in files very fast and respects your .gitignore.

ripgrep Overview

ripgrep is a free, open-source command-line tool that searches the files in a folder for text or a regular expression, very fast. Its command is rg: type rg followed by what you are looking for, and it searches the current folder and everything inside it. By default it skips files listed in your .gitignore, hidden files and binary files, so in a code project you see only the results that matter. ripgrep is made by Andrew Gallant and is dual-licensed under the MIT license and the Unlicense.

ripgrep runs in Terminal on Apple Silicon and Intel Macs and installs with Homebrew (brew install ripgrep) or MacPorts. In benchmarks on its GitHub page it is usually faster than grep, git grep, The Silver Searcher and similar tools, while always supporting Unicode. Many code editors, including Visual Studio Code, use ripgrep for their search.

Key Features

ripgrep works like grep, but is made for searching code.

  • Recursive by default: searches the current folder and all folders inside it.
  • Automatic filtering: skips .gitignore entries, hidden files and binary files; turn this off with rg -uuu.
  • File types: search only some kinds of files, such as rg -tpy for Python, or leave some out.
  • Familiar options: context lines, several patterns, colored matches and full Unicode support.
  • PCRE2: switch to the PCRE2 regex engine with -P for look-around and back-references.
  • Encodings: search UTF-16, Latin-1, Shift_JIS and other text encodings.
  • Compressed files: search inside gzip, xz, bzip2, zstd and other compressed files with -z.
  • Replacements: rewrite the output based on what matched.

What’s New in Version 15.2.0

ripgrep 15.2.0 fixes several bugs related to gitignore matching and speeds up searches in large folders.

  • Faster directory traversal on very large sets of files
  • Respects the GIT_CONFIG_GLOBAL and GIT_CONFIG_SYSTEM settings
  • Fixes for several gitignore matching bugs
  • Ready-made program added for Linux on Arm with musl

ripgrep FAQ

Is ripgrep free?

Yes. ripgrep is free and open source, dual-licensed under the MIT license and the Unlicense; you can use it under either one.

How do I install ripgrep on a Mac?

Run brew install ripgrep in Terminal if you use Homebrew, or sudo port install ripgrep with MacPorts. Ready-made programs for Apple Silicon and Intel Macs are on its GitHub releases page.

Why is the ripgrep command called rg?

rg is simply ripgrep's short command name. For example, rg TODO searches the current folder and its subfolders for the word TODO.

Why doesn't ripgrep find text in some files?

By default ripgrep skips files listed in .gitignore, .ignore and .rgignore files, hidden files and binary files. Use rg -uuu to search everything.

How do I search only certain file types with ripgrep?

Use -t followed by a type, for example rg -tpy foo for Python files, or -T to leave a type out, such as rg -Tjs foo. rg --type-list shows all known types.

Is ripgrep faster than grep?

In the benchmarks on ripgrep's GitHub page, it is usually faster than grep and similar tools, especially when searching code folders, while always supporting Unicode.

Can ripgrep replace grep completely?

For most searches, yes; ripgrep has most grep features. It is not a drop-in replacement for every script that expects grep's exact behavior, which its FAQ explains.

Can ripgrep search inside compressed files?

Yes. With -z, ripgrep searches files compressed with gzip, bzip2, xz, lz4, lzma, brotli or zstd.

Which code editors use ripgrep?

Several editors use ripgrep for their file search. For example, Visual Studio Code's Find in Files is powered by ripgrep.

Where does the ripgrep download on ripgrep.FULLMAC.app come from?

The download button leads to ripgrep's official GitHub page at https://github.com/BurntSushi/ripgrep, with the install instructions and releases. ripgrep.FULLMAC.app does not change or repackage the tool.

Similar Apps

FULLMAC.app does not host this app. Download buttons lead to the developer’s own pages.