rp: replace one string with another

This simple C program replaces one string with another in standard input or in one or more files.

Download

Compile

  1. Download one of the archive files.
  2. Unpack the archive file. For example:
    • To unpack rp.tar.gz: tar -xzf rp.tar.gz
    • To unpack rp.zip: unzip -q rp.zip
  3. Go to the rp directory. For example: cd rp
  4. Compile and link the executable file. For example:
    • With make: make
    • Without make: gcc -o rp rp.c