ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: sed question
Date: Sun, 18 Dec 2005 19:53:51 +0100	[thread overview]
Message-ID: <43A5B03F.2010507@elvenkind.com> (raw)
In-Reply-To: <EAA9B3B3-6BEA-496D-B5AC-E08E048A0C2C@cox.net>

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

  reply	other threads:[~2005-12-18 18:53 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 [this message]
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

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=43A5B03F.2010507@elvenkind.com \
    --to=taco@elvenkind.com \
    --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).