wkennington / substitute

A simple utility for replacings strings within a file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Intro

Substitute is a simple utility for performing string replacement on text files.

Dependencies

Substitute has a minimal set of dependencies mostly contained in any essential build environment:

  • C Compiler
  • Make
  • Automake
  • Autoconf
  • PKG-Config
  • Check (for testing)

Building

Building substitute is similar to any other autotools managed project.

git clone git://github.com/wkennington/substitute
cd substitute

autoreconf -vfi
./configure --prefix="<INSTALL DIR>"
make
make install

Running

To print the help text:

substitute -h

To perform simple replacements of hello -> world and foo -> bar:

substitute -r hello world -r foo bar infile outfile

About

A simple utility for replacings strings within a file

License:Other


Languages

Language:C 79.8%Language:M4 7.4%Language:Makefile 6.6%Language:C++ 6.2%