streplace - replace strings in everything
Did you ever want to replace a string in binary files everywhere is occurs?
Did you ever want to rename thousands of files at once in a special way and/or
make everything uppercase/lowercase at the same time? Did you ever want to
modify the contents of symbolic links consistently because you moved
directories? Did you ever want to rename your C++ class across all your
projects with a single command? Then streplace is for you!
streplace can ...
- replace regular expressions
- reuse substrings of the regular expressions
- replace simple strings
- work on ASCII files
- work on binary files
- work on filenames (effectively renaming files and directories)
- work on the contents of symbolic links
- work recursively on directories
- replace the slash in filenames as if it was a normal character
- show what it would do without actually doing it
- show how the modified files will look like without actually modifying them
- be annoyingly slow sometimes, sorry I am working on this
News
- 2007-04-16: v0.9.34: --select-lines and --ignore-lines added
- 2007-03-22: v0.9.33: current version on this webpage
- 2004-05-23: compiles under gcc 3.4.0
- 2004-05-23: MacOSX: rename should work properly even when only changing the case of the filename
Copyright
streplace is distributed under the terms of the GPL (GNU General Public License).
Supported platforms
- Linux/i386 - gcc 4.1.2 (probably all gcc >= 3.x.x)
- SunOS - gcc
- Mac OS X 10.4 - gcc
Documentation
Streplace is heavily underdocumented. You are always encouraged to look at the source and improve the manpage.
The output of streplace --help gives an overview of the functionality and the manpage
(slightly out of date, sorry) describes all the options in detail and also gives some examples.
Download
© 2002-2007 by Johannes Overmann <Johannes.Overmann@gmx.de> -
2007-04-16
(V)