delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/28/09:33:25

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=AnCOV+nJ33IJQR6g
P+cjflTK0arXgpaHDWR3UpVCl9BdlffHiHA8gOgRlikxbLs3xEncM1W4327OZOBF
8ey5RBgIvFzsGoJ6vnapLscGhaKIehc64C0SQ9MlaSfejgMC7ns5ESzzjQLDUki/
cV2G5aIqDWiPDMFad7wzTsYfiE0=
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=8b/foI++RUeja/yFmQlBv8
gwhB4=; b=mjlt5hhd3fbShUI0C8qe0bF0FCRckicETu4lhe8fQgiOl2cmYFhFnc
8xGSYzjJ4ir55iJIw9asKFD/CW9bmUkPuyBe4vNG6DHcCnB0ptntpO30bqkeA4Qq
sH134p/3Ucj2r7lOkZ2/NSdbaxl9VoqIHahTOpCdtCChGRen0dm0k=
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=-1.4 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Syntax, fergus, string2, awkward
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=ONm0hCp/3u6xkYR8OifsbLBkNo7NjmKUhnuJlPK9yiI=; b=IMMzsjQ5Rbk641nvoFw+z+njj3xHvfro8guFCgEywSGPJLT6VRVrkR1FSPmVp7w3mK T4se+Y/8pp/poAlYhyysG9H9B/K7mx1mVs7AeJ40S2EorlWepsCMpQ8d2MiMfk7soRXs s6PnZDH5y3vAaKUSl42gAkYuHr10azXLgY3cI1rGAq1QweqteP+hZWg1ZAwP8RkKCDUB OBfqe2Z3bh7KyosGkN4uNyXowZbzdCB7foXiXhbHh4zCkyuTleewO9Eh6K4xlPSlXjGa d+EaSyt5olyyYfNXTyl9BRqnWUK6xnplmzDJfBFExPZBR4KFQH8Cv0s7w0/qu0AXU+E8 MdFA==
X-Gm-Message-State: ALyK8tJY32gKNOVahIZy7PbyMx07ymcMK/aqlz5qCBlycuzUAIPF4LLOz3JNafaf/d+Ppw==
X-Received: by 10.194.246.4 with SMTP id xs4mr3309229wjc.96.1467120777295; Tue, 28 Jun 2016 06:32:57 -0700 (PDT)
Subject: Re: Syntax for sed .. altered?
To: cygwin AT cygwin DOT com
References: <9D9AC45310887B40A7245734E850FBE13946B56A AT FS-MX02 DOT frontier DOT local>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <d0b0dc98-80ba-08d8-aca3-f19ed811faf0@gmail.com>
Date: Tue, 28 Jun 2016 15:32:54 +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: <9D9AC45310887B40A7245734E850FBE13946B56A@FS-MX02.frontier.local>
X-IsSubscribed: yes

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 command just hangs.
> The files are all text files, no binaries or anything awkward. Just don't understand it.
> (By contrast
> find dirname -type f | xargs md5sum
> still works just fine. 6000 files in less than a second.)
> Fergus
>

sed is unchanged from at least 2013, so it must be something else.
Any idea on the file where is hanging ?

As usual, please follow
https://cygwin.com/problems.html

and provide a cygcheck.out.

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