From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/24470 Path: news.gmane.org!not-for-mail From: David Arnold Newsgroups: gmane.comp.tex.context Subject: Re: sed question Date: Sun, 18 Dec 2005 15:03:11 -0800 Message-ID: References: <43A5B800.7050402@mail.ru> <43A5B9AA.6040808@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1134947144 12389 80.91.229.2 (18 Dec 2005 23:05:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 18 Dec 2005 23:05:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 19 00:05:42 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Eo7Zw-0003QK-Qf for gctc-ntg-context-518@m.gmane.org; Mon, 19 Dec 2005 00:04:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id EA88812846; Mon, 19 Dec 2005 00:04:31 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22366-03; Mon, 19 Dec 2005 00:04:26 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B9D79127FE; Mon, 19 Dec 2005 00:04:26 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BA83127FE for ; Mon, 19 Dec 2005 00:04:26 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22411-06 for ; Mon, 19 Dec 2005 00:04:25 +0100 (CET) Original-Received: from fed1rmmtao06.cox.net (fed1rmmtao06.cox.net [68.230.241.33]) by ronja.ntg.nl (Postfix) with ESMTP id 9F391127EF for ; Mon, 19 Dec 2005 00:04:24 +0100 (CET) Original-Received: from [10.0.1.2] (really [70.191.56.23]) by fed1rmmtao06.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051218230222.VQDF20050.fed1rmmtao06.cox.net@[10.0.1.2]> for ; Sun, 18 Dec 2005 18:02:22 -0500 In-Reply-To: <43A5B9AA.6040808@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:24470 Archived-At: It "finds" ok, just something later goes wrong: IntermediateAlgebraText $ find . -name "*.tex" | xargs ./book.tex ./bookenv.tex ./chapter1/chapter1.tex ./chapter1/ section1.tex ./chapter1/section2.tex ./chapter1/section3.tex ./ chapter2/chapter2.tex ./chapter3/chapter3.tex ./chapter3/junk.tex ./ chapter3/section1.tex ./chapter3/section2.tex ./chapter3/ section3.tex ./chapter3/section4.tex ./chapter3/section5.tex ./ chapter4/chapter4.tex ./chapter5/chapter5.tex ./chapter6/ chapter6.tex ./chapter7/chapter7.tex ./chapter8/chapter8.tex Aha! Got it! Needs the switch -e. IntermediateAlgebraText $ find . -name "*.tex" | xargs sed -i -e '/% output=pdf/d' On Dec 18, 2005, at 11:34 AM, Taco Hoekwater wrote: > Radhelorn wrote: >> David Arnold wrote: >>> IntermediateAlgebraText $ find . -name "*.tex" | xargs sed -i '/% >>> output=pdf/d' >>> sed: 1: "./book.tex": invalid command code . >>> >> Strange. Command is valid and works for me. > > Depending on your shell, you may want to use *.tex without quotes? > > Taco > > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context