Projects / replace

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.

Tags Text Processing
Operating Systems POSIX
Implementation C

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  07 Oct 2004 11:34
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  04 Sep 2004 12:21
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  21 May 2004 17:06
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  25 Mar 2004 09:08
  • Rrelease-after

Changes: 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.

  • Rrelease-mid
  •  04 Jun 2001 14:27
  • Rrelease-after

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

No-screenshot

Project Spotlight

LINUX-ISP-89SXX

A complete IC programming tool for the 89SXX series.

7ef7ba4e7ee3be7a4468ec85a9f8ca3b_thumb

Project Spotlight

svn2cl

A script to convert Subversion logs to GNU-style changelogs.