From: David Arnold <dwarnold45@cox.net>
Subject: Re: sed question
Date: Sun, 18 Dec 2005 11:07:12 -0800 [thread overview]
Message-ID: <A2D8F998-BFED-4D9E-B4B7-A6201C93AF81@cox.net> (raw)
In-Reply-To: <43A5B03F.2010507@elvenkind.com>
IntermediateAlgebraText $ find . -name \*.tex -exec perl -npi -e 's/%
output=pdf/%/g' \{\}\;
find: -exec: no terminating ";"
On Dec 18, 2005, at 10:53 AM, Taco Hoekwater wrote:
> David Arnold wrote:
>> All,
>> How would I use sed to erase %output=pdf from any file ending
>> with .tex in the current directory and any subdirectories below it?
>
> I don't know about sed, but here is a find/perl solution that would
> work
> on linux:
>
> find . -name \*.tex -exec perl -npi -e 's/%output=pdf/%/g' \{\} \;
>
> Taco
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
next prev parent reply other threads:[~2005-12-18 19:07 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 [this message]
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
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=A2D8F998-BFED-4D9E-B4B7-A6201C93AF81@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).