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?


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


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