---------------
Christof.Meerwald@ mfr.project

home
> mfr

translate to German (by SYSTRAN)

Overview

Multifile-replace applies regular expression replace patterns to multiple files. It basically does something like:

for file in ...; do
    sed -e 's/xxx/yyy/' <$file >$file.tmp;
    mv $file.tmp $file
done

But it is more efficient because it avoids creating temporary files and spawning a subprocess for each file.

Usage

multifile-replace [OPTION]... [FILE]...

-v, --verbose run in verbose mode
-V, --version output version information
-h, --help display this help and exit
-g, --globbing enable file globbing (DMC only)
-p, --preserve preserve file modification date/time
-s the regex substitution expression

Prerequisites

  • C++ compiler (e.g. GNU C++)
  • POSIX regex library
  • GNU make

Installation Notes

  • edit GNUmakefile
  • run (gnu)make

Download

> mutifile-replace-0.3.tar.gz
> mutifile-replace-0.2.tar.gz
> mutifile-replace-0.1.tar.gz

---------------

This Web page is licensed under the Creative Commons Attribution - NonCommercial - Share Alike License. Any use is subject to the Privacy Policy.

Revision: 1.4, cmeerw.org/mfr/
Last modified: Tue Aug 14 20:14:07 2007
Christof Meerwald <cmeerw@cmeerw.org>
XMPP: cmeerw@cmeerw.org