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 |
Recent releases


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.


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.


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


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.


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.
- All comments
Recent commentsRe: Free Software replacement for rpl in Debian
http://packages.qa.debian.org/r/rpl.html
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
Keep it up!
Hey Joe, i find it's a very useful program for everyone. Time saver! thanks and keep up the good work!
I dunno
This looks useful, but I'm still tempted to use:
perl -p -i.bak -e "s/foo/bar/g" `find . -name '*.html'`
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!