interactive multi-file search and replace

Discussion in 'Python' started by Ryan Krauss, Jun 19, 2006.

  1. Ryan Krauss

    Ryan Krauss Guest

    I need to do some searching and replacing in about 10 latex files.
    Does anyone have an existing script that does this on an interactive
    basis? I would like to show each match and ask whether or not it
    should be replaced.

    This seems like a fairly common task and I don't want to re-invent the wheel.

    Ryan
     
    Ryan Krauss, Jun 19, 2006
    #1
    1. Advertising

  2. Ryan Krauss

    James Stroud Guest

    Ryan Krauss wrote:
    > I need to do some searching and replacing in about 10 latex files.
    > Does anyone have an existing script that does this on an interactive
    > basis? I would like to show each match and ask whether or not it
    > should be replaced.
    >
    > This seems like a fairly common task and I don't want to re-invent the
    > wheel.
    >
    > Ryan


    Most people probably use something like vim rather than re-inventing the
    wheel themselves.

    James

    --
    James Stroud
    UCLA-DOE Institute for Genomics and Proteomics
    Box 951570
    Los Angeles, CA 90095

    http://www.jamesstroud.com/
     
    James Stroud, Jun 20, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. WJ
    Replies:
    2
    Views:
    526
  2. Kieran Seymour
    Replies:
    13
    Views:
    12,375
    Blinky the Shark
    Apr 21, 2005
  3. Xah Lee
    Replies:
    0
    Views:
    644
    Xah Lee
    Jun 14, 2006
  4. Xah Lee
    Replies:
    0
    Views:
    355
    Xah Lee
    Jun 14, 2006
  5. Xah Lee
    Replies:
    0
    Views:
    284
    Xah Lee
    Jun 14, 2006
Loading...

Share This Page