Projects / replace


replace provides an easier alternative to sed for replacing one or more strings with another in one or more text or binary files or from standard input.

Operating Systems

Recent releases

  •  07 Oct 2004 18:34

    Release Notes: A memory allocation bug that was causing a program crash during text file string replacements has been fixed. An incorrect assumption that "." was in the PATH when running the test suite has been fixed. The -A option has been deprecated with this release, and may be removed in a future version.

    •  04 Sep 2004 19:21

      Release Notes: A new -d flag has been added to specify the temporary directory for modified files. If the final line of a text file is unterminated, the program now correctly handles it (i.e. doesn't add a terminator if there's a string replaced in the line). A crashing issue which occurred if the -A flag and a binary input file containing one or more null bytes were both supplied was fixed. The code now correctly deletes any temporary file it is working with if it is interrupted by CTRL-C. An improved test suite has been supplied with the source code. Code warnings generated by splint (Linux lint) have now been fixed.

      •  22 May 2004 00:06

        Release Notes: This release supports replacements in files greater than 2GB and fixes minor issues such as incorrect comparison of old and new binary hex replacement strings and non-quoting of parameters in a system call to the mv function. Compiler warnings on non-gcc or non-ANSI C compilers should hopefully now be eliminated, and the man note about quoting parameters containing spaces has been extended to remind users that any special shell characters will also require the parameter involved to be quoted.

        •  25 Mar 2004 17:08

          Release Notes: The occasional binary replacement crashes caused by signed char issues were fixed. More suffixes supported by the -w option were added. Minor Makefile changes were made to detect Linux or HP-UX automatically and set the appropriate compiler flags accordingly.

          •  04 Jun 2001 18:27

            Release Notes: This release contains auto-detection of binaries, a new -P option for pre-padding, 2 levels of verbosity with -v, and minor bug fixes.


            Project Spotlight


            A Fluent OpenStack client API for Java.


            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.