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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=XerZr90dxdsV42xt ixPaYpNbR/vOwpCXB8IXpDVU/bIlqD3TI5l2o3V0h70W8K66trAcZxY9NnJuUIj9 T+kzEoC96bK3mCxSJX+0rgWjTr/iZwwF/pNMvfr8j3bjnUM8wpo2LeRlE7h0S85b in2sXvcuV50K57qLG3w7VyNaB0U= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=l6oKDaXKVQ840p9NvpeMkG Z/zYM=; b=FUUJgAXoHWjGK7OCfxleIiZHiCt/OA8Pa+wmhB1n9Y5KOJP/oTKx4G jWAXu4uebwjNXBiPdu39TvhUIkBbC83AO6P0VpaPE2n6k+mvY33rIDG/hdFbuNJO F9c0Fl/C1tSpJqwyOqPsiX/ncxVudQ2HOI2zbnnTccW2C+mfrdCBc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Daly, daly, Fergus, H*i:sk:9D9AC45 X-HELO: mail-wm0-f43.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=EMupVJK618SjiXVrrUohHfbh4xhZY6dHYz7XntrluCU=; b=VjGsWYntGfXxQmCyN0XQFh8QOQYKzFzX1H2Y8aI40YHuy2ecV3DI0cYV38grJ39Kv2 i5OZ9ENbyPBHzj3/VFUHmMXUGwePM1Om7QI8YOHKlFUvury4Z7jnBYQ6AVSllV4XstJQ hYW0KYfIMwIiZdW+eg02yxDUCHZBjCWSub8Ih8EKtdctJk+5SyoHgAMhQUFu50endIu7 Qlv9/k0pWkJEpUnxvPuRtE3M7xM7U2jCF5Tls4LHCXziLwEiH62cVyA7BiGwNq7qJjkO IFLYYQFn2K0iTfXZkAVieXNY7StxK4A8CEG2UUjOUCVk158S8g2ZFOZ/a0ldwzBeBFzq ScgQ== X-Gm-Message-State: ALyK8tIGMs3+3p9NaOf8RLUSGGrWGSP+S83A5bOyacMFRfMNTbWV3opIItNlu4S8UQOERw== X-Received: by 10.28.11.79 with SMTP id 76mr15381041wml.91.1467299980884; Thu, 30 Jun 2016 08:19:40 -0700 (PDT) Subject: Re: Syntax for sed .. altered? To: cygwin AT cygwin DOT com References: <9D9AC45310887B40A7245734E850FBE13946C8A0 AT FS-MX02 DOT frontier DOT local> From: Marco Atzeri Message-ID: <66f0dfe0-e002-9706-8886-2071b0dff8cb@gmail.com> Date: Thu, 30 Jun 2016 17:19:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <9D9AC45310887B40A7245734E850FBE13946C8A0@FS-MX02.frontier.local> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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' > 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 > Not at all $ find test -type f |wc 177 177 5119 $ time find test -type f | xargs sed -i -e "s/Octave/Pippo/g" real 0m5.149s user 0m0.170s sys 0m1.183s BLODA ? -- 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