rpl

rpl is a Unix text replacement utility. It will replace strings with new strings in multiple text files. It can scan directories recursively and replace strings in all files found. The search can be limited to files with certain filename suffixes (e.g. '.html', '.c', etc.). It includes source, a build script, and a man page. It should work on most flavors of Unix. Linux/Intel, Linux/PPC, and source RPMs are available, as are binaries for other OSes, including Mac OS X.

Tags Internet Web Site Management Systems Administration Text Editors Text Processing
Operating Systems OS Independent
Implementation C

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  24 Jul 2002 13:48
  • Rrelease-after

Changes: Support was added for escapes like "\t" and "\n" (or any hex/octal ASCII code). A bug was fixed that caused match to fail if the previous character was the same as the first character in the search string. GNU Autoconf is now in use, and some code cleanups were done.

  • Rrelease-mid
  •  04 Jul 2001 10:36
  • Rrelease-after

Changes: A bug that would garble the last few characters of a file when the search string had one or more spaces as the last character was fixed. Zero is now returned on success, and error codes are returned on error.

  • Rrelease-mid
  •  26 Mar 2001 11:35
  • Rrelease-after

Changes: Error reporting was improved. Some code cleanup / commenting was done. The License was revised to make it more clear that packaging is OK.

  • Rrelease-mid
  •  20 Mar 2001 12:10
  • Rrelease-after

Changes: Support for specifying file suffixes to be searched (e.g., '.html', '.c', etc.). Multiple suffixes may be added and only files with those suffixes will be searched (works well with the recursive -R option). Better error reporting, and various bugfixes.

  • Rrelease-mid
  •  30 Jan 2001 06:13
  • Rrelease-after

    Changes: Support for high-bit ASCII characters like accented characters and other non-English characters, an option to not modify modification times, the ability to specify a temp directory, and misc. code fixes.

    Rss Recent comments

    Rcomment-before 20 Feb 2006 09:29 Rcomment-trans breiter Rcomment-after

    Re: Free Software replacement for rpl in Debian
    http://packages.qa.debian.org/r/rpl.html

    Rcomment-before 09 Dec 2005 03:07 Rcomment-trans breiter Rcomment-after

    Free Software replacement for rpl in Debian
    In Debian there is a Free Software rewrite of rpl
    in python available.
    Check out
    Debian
    Developer Information for rpl

    Rcomment-before 08 Oct 2001 21:41 Rcomment-trans moksl Rcomment-after

    Keep it up!
    Hey Joe, i find it's a very useful program for everyone. Time saver! thanks and keep up the good work!

    Rcomment-before 04 Jul 2001 10:50 Rcomment-trans fuller Rcomment-after

    I dunno
    This looks useful, but I'm still tempted to use:

    perl -p -i.bak -e "s/foo/bar/g" `find . -name '*.html'`

    Rcomment-before 26 Mar 2001 19:15 Rcomment-trans joelaff Rcomment-after

    Re: "utility to replace text in files..." - It _IS_ Free!

    > % I use rpl for simple text replacement.
    > It works well. I do wish it let me enter
    > escape sequences like "\n" or
    > hex codes and the like.

    That's a great idea. Look for it in a future release!

    55347be9e4c907871b9a2e66bed5c71d_thumb

    Project Spotlight

    Punto

    A tool for the visualization of particles.

    Ffccc45930a36cb3b7961f5f9766a2ca_thumb

    Project Spotlight

    Seed7

    An extendable programming language.