2 min read

The Ripgrep team released a minor version Ripgrep 0.10.0 last week. It explores features such as PCRE2 support, multi-line search and a JSON output format among other minor updates.

Ripgrep is a command line search tool that recursively searches your current directory for a regex pattern while respecting your gitignore rules. It offers first class support on Windows, macOS, and Linux.

Major Updates

The minimum version which was required to compile Rust has been changed to track the latest stable version of Rust. The new minor versions will be using the current stable version of the Rust compile as its minimum supported version.

Ripgrep 0.10.0 has now got libripgrep which helps with fast searching over arbitrary streams of data.  A new feature offering multi-line support has been added, which allows matching over multiple lines.

There’s another new feature PCRE2 and JSON Lines format. The PCRE2 feature provides support for look-around and backreferences ( match the same text as previously matched by a capturing group ) and JSON lines format makes use of –json flag which helps print results in that format.

Other changes

  • A –one-file-system flag has been added to skip directories on different file systems.
  • Two new minor features namely –sort and –sortr flag have been added for more sorting.
  • –crlf flag is added in Ripgrep 0.10.0 to permit $ to work with carriage returns on Windows.
  • A –null-data flag has been added to ripgrep 0.10.0 that makes ripgrep use NUL as a line terminator.
  • –line-buffered and –block-buffered have been added for forcing a buffer strategy.
  • A –pre-glob feature has been added for filtering files through the –pre flag.

Bug Fixes

  • A bug in ignore crate, where first path was treated as a symlink, has been fixed in ripgrep 0.10.0.
  • Compile time and runtime CPU features have been added to –version output.
  • ripgrep is more robust now when it comes to memory maps failing.

For more information, check out the official ripgrep 0.10.0 release notes.

Read Next

Arduino now has a command line interface (CLI)

Command Line Tools for DevOps

Command-Line Tools

Tech writer at the Packt Hub. Dreamer, book nerd, lover of scented candles, karaoke, and Gilmore Girls.