dorian-replace
Replace text in files.
Install
gem install dorian-replaceAlso included in the aggregate gem:
gem install dorianUsage
replace from to [file ...]Run replace -h for generated option details and replace -v for the installed version.
Notes
- If no files are passed, reads file paths from stdin. Directories are skipped.
Examples
Replace text in Markdown files
replace old-name new-name README.md docs/*.mdUse with git grep
git grep -l old-name | replace old-name new-name