From: David Arnold <dwarnold45@cox.net>
Subject: Re: sed question
Date: Sun, 18 Dec 2005 15:03:11 -0800 [thread overview]
Message-ID: <DFA28709-4EAF-4811-B0C9-2B1D184501C7@cox.net> (raw)
In-Reply-To: <43A5B9AA.6040808@elvenkind.com>
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
prev parent reply other threads:[~2005-12-18 23:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-18 18:01 David Arnold
2005-12-18 18:53 ` Taco Hoekwater
2005-12-18 19:07 ` David Arnold
2005-12-18 19:05 ` VnPenguin
2005-12-18 19:14 ` David Arnold
2005-12-18 19:26 ` Radhelorn
2005-12-18 19:32 ` David Arnold
2005-12-18 19:34 ` Taco Hoekwater
2005-12-18 23:03 ` David Arnold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DFA28709-4EAF-4811-B0C9-2B1D184501C7@cox.net \
--to=dwarnold45@cox.net \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).