Live data from Hacker News

Go Replace - simple and fast search and replace tool for command line

solovyov.net

1–10 of 64 posts

Re: Go Replace - simple and fast search and replace tool for command line

#5
post #3

I 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

#8

Are 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

#10
For 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).

Post reply on HN