DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Find and replace from text file? Or similar?  (Read 13,306 times)

Mandork

  • Hopeless or hapless?
  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 64
Find and replace from text file? Or similar?
« on: November 25, 2007, 10:09 PM »
I might be being really dense, but it seems that none of the find and replace utilities that I have looked at do quite what I want.

I would like to be able to define a list of standard replacements to make and then store it somewhere, so that when I have a file that I need to do multiple replacements on I can just run it, rather than doing find-replace over and over. 

The particular application:  I have a very long BibTeX file (3500+ entries), some of which are written using the LaTeX codes for characters, and some of which have characters that I put in using ASCII codes, or whatever the places I imported them from used.  Some of them are causing problems when I try to compile the document, and I would like to go through and replace them all with the codes.  I anticipate having to do this more than once, so it would be nice to have a ready-defined list to run.  It only needs to be one file at a time.

The list would be something like:
find  replace
á      \'{a}
Á    \'{A}
é      \'{e}

And so on.  Lots of programs seem like they will do this, but I can't figure out how to avoid typing in the list over and over again.

Sorry if it is a dumb question...
Computers are useless. They can only give you answers.
Pablo Picasso

kimmchii

  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 360
Re: Find and replace from text file? Or similar?
« Reply #1 on: November 25, 2007, 10:29 PM »
try InfoRapid Search & Replace

after you make a search it is available in the dropdown menu, you can right click on a file or folder to search too.
If you find a good solution and become attached to it, the solution may become your next problem.
~Robert Anthony

Veign

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 993
    • Gathering Badge
    • Participated in NANY Challenge Twice
Re: Find and replace from text file? Or similar?
« Reply #2 on: November 25, 2007, 10:45 PM »
My Seeker application can be driven by a command line and search/replace's can be stored in a file.  So you can recall a file to perform a common search and replace.

Seeker:
http://www.veign.com/application.php?appid=104

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
Re: Find and replace from text file? Or similar?
« Reply #3 on: November 25, 2007, 11:38 PM »
Take a look at ReplaceEm, I think it does exactly what you need. The list you described can be saved as a group and reused.

tinjaw

  • I'm so glad breakbeat techno isn't an illegal drug
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,927
    • Participated in NANY Challenge Twice
    • Coding Snacks
    • Military Service Badge - US Army
    • Linux User
Re: Find and replace from text file? Or similar?
« Reply #4 on: November 26, 2007, 02:23 AM »
try InfoRapid Search & Replace
That looks nice kimmchii. I'll have to check that out. When I was reading up on it I also saw their InfoRapid KnowledgeMap which looks pretty neat. It would take some time to check that out, but I have bookmarked it for later.

Quote
InfoRapid KnowledgeMap is a complete Knowledge Management System suitable for use at home, at work or on the company intranet. The suite consists of two components: an image-editing (drawing) program for creating graphically sophisticated mindmaps, and the intelligent KnowledgeMap server, which analyzes text document content and integrates it with a knowledge map.

[attachthumb=#1]
[attachthumb=#2]
[attachthumb=#3]

rjbull

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3,217
Re: Find and replace from text file? Or similar?
« Reply #5 on: December 09, 2007, 07:58 PM »
Surf to Eric Pement's home page.  Click the SED link from the main menu, and when it loads, page down to the section on command-line search-and-replace tools.  He says, very succinctly,  more or less everything that needs to be said on the subject, unless you like DOS applications, in which case you need the Free Software for DOS home page as well.  If you're attracted by MiniTrue, don't overlook Eric Pement's supplementary page of tricks and traps with it.



imtrobin

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 125
Re: Find and replace from text file? Or similar?
« Reply #6 on: December 10, 2007, 03:22 AM »
http://helpware.net/FAR/

You save the filters and can run them all in a batch. I use it to remove pesky javascripts before compiling to chm

Original address: https://www.donationcoder.com/forum/index.php?topic=11013.0