Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 553 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 553 Bytes

dorian-replace

Replace some string with some other string from the files provided

e.g. replace "cool" "coolest" *.md

Install

gem install dorian-replace

Or as part of my other gems:

gem install dorian

Usage

From my history:

replace "WorldCountry.spain" "WorldCountry.by_name('Espagne')" test/**/*
replace "Né(e) à l'étranger / Outre-Mer" "Né(e) à l'étranger" test/**/*
git grep -l " doc " app/assets/ | xargs replace " doc " " document "
git grep -l "={doc}" | xargs replace "={document}"