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"
<li...@eastcheap.org> 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
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev
_______________________________________________
fluid-dev mailing list
fluid-dev@nongnu.org
https://lists.nongnu.org/mailman/listinfo/fluid-dev