This is the mail archive of the
mailing list for the Cygwin project.
Re: Syntax for sed .. altered?
- From: Marco Atzeri <marco dot atzeri at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 30 Jun 2016 17:19:35 +0200
- Subject: Re: Syntax for sed .. altered?
- Authentication-results: sourceware.org; auth=none
- References: <9D9AC45310887B40A7245734E850FBE13946C8A0 at FS-MX02 dot frontier dot local>
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.
I was premature in my assertion that sed "hangs".
But it takes a crazy crazy time.
I was working on a directory of 6000 text files when I reported as above.
This is what happened with a directory of <90 files:
~> find archive -type f | wc
87 87 1698
~> time find archive -type f | xargs sed -i 's/string1/string2/g'
More than a minute for 90 files is just extraordinary.
Anybody else having a similar experience?
(Thank you again.)
Not at all
$ find test -type f |wc
177 177 5119
$ time find test -type f | xargs sed -i -e "s/Octave/Pippo/g"
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple