Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 764 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 764 Bytes

riplace

rp (short for "riplace") is a command-line utility designed for multiline find and replace across files. Inspired by the blazing-fast search capabilities of "ripgrep", rp brings similar speed and efficiency to the task of replacing text.

Examples

Simple Replacement:

rp -p "*.txt" -f "foo" -r "bar"

Case-Insensitive Replacement:

rp -p "*.config" -i -f "example" -r "sample"

Including Hidden Files:

rp -p "*" --hidden -f "localhost" -r "127.0.0.1"

Multi-line Replacement:

rp -p "*.sql" -f "SELECT * FROM users" -r "SELECT * FROM active_users"

Future Features

  • wildcard matching for find block
  • capture groups for the replace block
  • build find and replace chunks from text in a file