Projects / 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.

Operating Systems

Recent releases

  •  24 Jul 2002 17:48

    Release Notes: 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.

    •  04 Jul 2001 14:36

      Release Notes: 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.

      •  26 Mar 2001 16:35

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

        •  20 Mar 2001 17:10

          Release Notes: 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.

          •  02 May 2000 19:09

            Release Notes: 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.

            Recent comments

            20 Feb 2006 09:29 breiter

            Re: Free Software replacement for rpl in Debian

            09 Dec 2005 03:07 breiter

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

            08 Oct 2001 21:41 moksl

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

            04 Jul 2001 10:50 fuller

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

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

            26 Mar 2001 19:15 joelaff

            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!


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.