Re: [go-nuts] Re: Find a string in a file and delete all occurences in the file

2017-04-28 Thread Vikas Kumar
Thanks again Michael and Ishan. My git-hook is completed now, running perfectly :) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] Re: Find a string in a file and delete all occurences in the file

2017-04-23 Thread Vikas Kumar
Thanks Tamás, I am looking something in a Golang way so that I can create a binary and distribute it in the team which has some Windows users as well. Thanks for the pointers. Let me try it out. On Sunday, 23 April 2017 17:06:42 UTC+10, Tamás Gulácsi wrote: > > The easiest would be that sed.

[go-nuts] Find a string in a file and delete all occurences in the file

2017-04-22 Thread Vikas Kumar
Hey All, I am trying to iterate over an array, match the lines in a file and then delete all occurrences of the lines in the file. See this example. *Array* var abcd = [5]string{ "one two", "three four fix", "six", "seven eight nine ten", "eleven twelve thirteen fourteen