Skip to content

A command line utility for multiline find and replace.

Notifications You must be signed in to change notification settings

koreyGambill/riplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A command line utility for multiline find and replace.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages