Re: Syntax for sed .. altered?

2016-07-01 Thread Andrey Repin
Greetings, Fergus Daly! > So far sed is the only operation where extreme sloth is exhibited. A > favoured benchtest using a long computation within Cygwin has not suddenly > slowed down, and remains consistent +/- 1 second within and between > machines. More detective work required, I guess. And

Re: Syntax for sed .. altered?

2016-07-01 Thread Fergus Daly
>> $ find archive -type f | wc 87 871698 >> $ time find archive -type f | xargs sed -i 's/string1/string2/g' real1m2.587s user0m1.200s sys 0m12.884s >> More than a minute for 90 files is just extraordinary. >> Anybody else having a similar experience? > $

Re: Syntax for sed .. altered?

2016-06-30 Thread Marco Atzeri
On 30/06/2016 16:57, Fergus Daly wrote: find dirname -type f | xargs sed -i 's/string1/string2/g' .. just hangs. sed is unchanged from at least 2013, so it must be something else. Is is possible that this is related to a change in the Cygwin library? Thank you very much for your interest

Re: Syntax for sed .. altered?

2016-06-30 Thread Fergus Daly
>>> find dirname -type f | xargs sed -i 's/string1/string2/g' >>> .. just hangs. >> sed is unchanged from at least 2013, so it must be something else. > Is is possible that this is related to a change in the Cygwin library? Thank you very much for your interest. I was premature in my assertion

Re: Syntax for sed .. altered?

2016-06-28 Thread Chris Sutcliffe
On 28 June 2016 at 09:32, Marco Atzeri wrote: > On 28/06/2016 13:45, Fergus Daly wrote: >> >> For ages I have been able to run through all the files under a directory >> changing occurrences of string1 to string2 with the command >> find dirname -type f | xargs sed -i 's/string1/string2/g' >> It us

Re: Syntax for sed .. altered?

2016-06-28 Thread Marco Atzeri
On 28/06/2016 13:45, Fergus Daly wrote: For ages I have been able to run through all the files under a directory changing occurrences of string1 to string2 with the command find dirname -type f | xargs sed -i 's/string1/string2/g' It used to take no time at all for say 6000 files. Now the same c

Syntax for sed .. altered?

2016-06-28 Thread Fergus Daly
For ages I have been able to run through all the files under a directory changing occurrences of string1 to string2 with the command find dirname -type f | xargs sed -i 's/string1/string2/g' It used to take no time at all for say 6000 files. Now the same command just hangs. The files are all text