This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Syntax for sed .. altered?


>>> 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'
real    1m2.587s
user    0m1.200s
sys     0m12.884s

More than a minute for 90 files is just extraordinary.
Anybody else having a similar experience?
(Thank you again.)

Fergus

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]