delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/30/10:58:12

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=l6W
i/ERqXedJSUJIIQjvlnaQ5JYAp/ap53YWu8TG1UPmK/AwUfu+Tu6uGoEmXc2KfQ4
ZxN0WeR5e4vGojtdATqiKSz+uFbJ5xbADlpGzlMvZvakKzsDyUZh2iFWGMYL0FH9
0UFobvgUwscEVhIL6l+n7GvTagMz+QieYVl1BUMk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:content-type
:content-transfer-encoding:mime-version; s=default; bh=qgWS1gkj0
BNIxplw6XiGWV8Hgtw=; b=yakWZDoaIH/kuZhtChRr6ahPipzVFnqAKiYvat4go
MVA9Tp+ksVjnX10S0nA8MRSvi5q3KkLiXLYRqj1uaphwXr/vx9DYPnCNbOyfeLtM
TDfTXnyN15nuHecn66OW6IStt1uAIJ7GBFAtxBIkp2MdCLaAQTblcDUpacFzCW5o
eM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_50,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Hx-spam-relays-external:unknown, H*RU:unknown, extraordinary, anybody
X-HELO: mx-relay20-haj2.antispameurope.com
From: Fergus Daly <fergusd AT frontier-science DOT co DOT uk>
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: Syntax for sed .. altered?
Date: Thu, 30 Jun 2016 14:57:45 +0000
Message-ID: <9D9AC45310887B40A7245734E850FBE13946C8A0@FS-MX02.frontier.local>
MIME-Version: 1.0
X-cloud-security-sender:fergusd AT frontier-science DOT co DOT uk :
X-cloud-security-recipient:cygwin AT cygwin DOT com :
X-cloud-security-Virusscan:CLEAN :
X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate20-haj2 with 7A50A37DC008
X-cloud-security-connect: unknown[195.59.181.82], TLS=1, IP=195.59.181.82
X-cloud-security:scantime:.1593 :
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u5UEw7ln030547

>>> 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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019