fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] New Patch 0003 - polymono - functionality


From: Ben Gonzales
Subject: Re: [fluid-dev] New Patch 0003 - polymono - functionality
Date: Wed, 17 Aug 2016 17:48:17 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

Thanks guys.

Yes, I'm familiar with the power of sed, but I use it so infrequently that the time taken to craft a working syntax would have been longer than the "replace? Y/N" procedure. Those who can handle regex with such ease have my deepest respect.

Ben

On 17/08/16 17:31, R.L. Horn wrote:
On Wed, 17 Aug 2016, Ralf Mattes wrote:

Am Mittwoch, 17. August 2016 07:37 CEST, "R.L. Horn" <address@hidden> schrieb:

On Sun, 14 Aug 2016, Ben Gonzales wrote:

I edited the patch file to change the "\" to "/" in the filenames.

Unfortunately I couldn't do a global search and replace as there are
other "\"s that are valid.
     ^^^^^^^

sed '/^diff/s/\\/\//g'

And why do you think this will leave cases like "...\n" untouched?
Did you read Ben's post?

Well, seeing as you asked so nicely, it only performs the substitutions on lines beginning with "diff."

I concede that it's incomplete. It should probably be (assuming GNU sed):

    sed -r '/^((---)|(\+\+\+)|(diff))/s/\\/\//g'

_______________________________________________
fluid-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fluid-dev




reply via email to

[Prev in Thread] Current Thread [Next in Thread]