Go Replace - simple and fast search and replace tool for command line
1–10 of 64 posts
Re: Go Replace - simple and fast search and replace tool for command line
#2Are 32bit binaries coming? For the rest, great job!
Re: Go Replace - simple and fast search and replace tool for command line
#3I have to break out the manual every time I use sed. Or awk. If this works reliably without any edge cases, it'll be fab!
Re: Go Replace - simple and fast search and replace tool for command line
#4Are 32bit binaries coming? For the rest, great job!
Hah, haven't thought about them (I use osx too much it seems). They will appear as soon as I figure out how to add them to Makefile without making it too ugly. :)
Re: Go Replace - simple and fast search and replace tool for command line
#5I have to break out the manual every time I use sed. Or awk. If this works reliably without any edge cases, it'll be fab!
It does for me. :) I partially did it because I was too tired of looking up sed's regexp syntax and was afraid I'm going to fuck up everything.
Re: Go Replace - simple and fast search and replace tool for command line
#6Wow, it's super fast AND the output looks great. Good job, piranha! Copied to /usr/bin, I will use this a lot.
Re: Go Replace - simple and fast search and replace tool for command line
#7Wow, it's super fast AND the output looks great. Good job, piranha! Copied to /usr/bin, I will use this a lot.
Thanks!
Re: Go Replace - simple and fast search and replace tool for command line
#8Are 32bit binaries coming? For the rest, great job!
Here we go, links are in readme. They work for me on 64-bit OS X and 64-bit Linux and `file` reports they are indeed 32-bit, but I haven't tested them on real 32-bit OS (I don't have any ATM).
Re: Go Replace - simple and fast search and replace tool for command line
#9I really like Facebook's codemod.py for stuff like that: https://github.com/facebook/codemod
It has something like automatic and manual modes, so you can check (and fix) every diff during the replacement
Re: Go Replace - simple and fast search and replace tool for command line
#10For x86 binaries:
go get github.com/piranha/goreplace
go install github.com/piranha/goreplace
is another way to get it if you have GO and GOPATH set up.
I personally aliased it to 'gor' in my zshrc as the git plugin already occupied the 'gr' (short for git remote).