Package name: replace Version number: 2.24 Original author: Richard K. Lloyd Original URL: HP-UX URL: http://hpux.connect.org.uk/hppd/cgi-bin/search?package=&term=/replace- License: Other/Unknown Open Source Licence Languages: C Build-time deps: gcc make Install tree: /usr/local Report bugs to: hpux@connect.org.uk Tested on: HP rp3410 running HP-UX 11.11 and 11.23 and HP rx2600 running HP-UX 11.23 C compiler used: gcc version 4.0.2 LDOPTS setting: export LDOPTS="+s -L/usr/local/lib -L/usr/local/lib/hpux32" Purpose: Replace ASCII or hex strings in text or binary files. Although HP-UX comes with sed, it has serious shortcomings as a command-line tool for novice users. This replace package provides a much easier way of replacing one or more strings with another in one or more text or binary files or from standard input. This release includes a memory allocation fix. Date archived: Thu 24 Nov 2005 ------------------------------------------------------------------------------- To compile: [Select your favourite compiler flags and edit the TREE definition in the Makefile] gmake To test (terse version): gmake test [should pass all the tests] To test (verbose version): gmake verbosetest [should pass all the tests, with a lot more output] To install: gmake install Notes: * replace compiles and tests OK on HP-UX 11.11, HP-UX 11.23, Red Hat Linux 8.0 and Fedora Core 2. You'll never go back to sed again :-) * This software is freely modifiable and re-distributable, providing the original unmodified text of the README is supplied with any re-distribution. I'd be delighted to receive any feedback about bug fixes, compilation on other platforms or enhancement requests. Send them to the e-mail address replace@richardlloyd.org.uk and help stamp out sed now - you know it makes sense ! * To see if there's a new replace release available, please go here: http://hpux.connect.org.uk/hppd/cgi-bin/search?package=&term=replace-