https://github.com/fed135/replazor
A cheap find-and-replace-in-files with confirm dialog in bash.
https://github.com/fed135/replazor
Last synced: 11 months ago
JSON representation
A cheap find-and-replace-in-files with confirm dialog in bash.
- Host: GitHub
- URL: https://github.com/fed135/replazor
- Owner: fed135
- Created: 2014-09-10T14:17:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T16:41:25.000Z (almost 11 years ago)
- Last Synced: 2025-01-08T18:52:40.311Z (about 1 year ago)
- Language: Shell
- Size: 133 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Replazor
========
A cheap find-and-replace-in-files with confirm dialog in bash.
The code is ugly and unoptimized. Not as portable as I'dd wish either.
Only tested on Ubuntu 14 (x86_64) running GNU Bash 4.3.11
I'll try to clean that up... someday.
## Usage:
$ bash Replazor [needle] [replacement] [optional:directory] [optional:filter]
## Example:
$ bash Replazor "some string" "some other string" /var/www/my_folder "*.js"
Will look inside all the .js files in /var/www/my_folder for the string "some string"
And will ask you if you wish to replace -occurence, by occurence- the needle with
"some other string", the replacement.