rpl
Details
| Last Update: | 2008-02-06 05:01:27 |
| Version: | 1.4.0 |
| License/Program Type: | GPL (GNU General Public License) |
| Publisher: | Joe Laffey |
| Price: | $0.00 |
Description:
rpl is a UNX text replacement utility. It will replace
strings with new strings in multiple text files. rpl project can
work recursively over directories and supports limiting the search
to specific file suffixes.
rpl [-iwRspfdtx [-q|-v]] < old_str > < new_str >
< target_file(s) >
rpl replaces old_str with new_str in all target files. It
returns the number of strings replaced or a system error code
(non-zero) if there is an error.
Note that you should put strings in single quotes if they
contain spaces. You must also escape all shell meta-characters.
It's a good idea to put ALL strings in single quotes.
If one of the strings starts with a "-" you need put "--"
as the last argument BEFORE the string. This will prevent the
options parser from treating the string as a command- line
option.
For Example:
rpl -i -- '-8x' '+8x' myfile
which would replace occurences of "-8x" with "+8x" in the
file myfile (ignoring case).
A period will be printed to stderr as each target file is
processed to give you feedback on the replacement progress.
You may use the quiet (-q) option to suppress all output but
major error reporting.
rpl will attempt to maintain the owner, group and permissions
of your original files. For safety, rpl creates a temporary file
and makes changes to that file. It then moves the temporary file
over the original file. rpl sets the owner, group, and permissions
of the new file to match those of the original file. In some
circumstances rpl will not be able to do this (such as when a file
is owned by the superuser but you have group write permission). In
these cases rpl will warn you that the owner/group or permissions
cannot be set and that file will be skipped, unless you use the
force (-f) option. Note that the use of temp files in predictable,
world-writeable locations could lead to symlink attacks. Ideally
you should set the $TMPDIR environment variable to a private
directory readable and writeable only by you. This is especially
important if running rpl as root. You have been warned!
rpl can be placed in silumation mode (-s), in which rpl will
print a list of files that would be modified if an actual replace
operation were executed. This is useful when you are about to make
changes to a larger group of files, possibly in many
directories.
rpl can be placed into prompt mode (-p). In this mode rpl will
examine each file, printing a period as each file is scanned. If a
match is found rpl will prompt you to save the replacements made to
that file. Answering "y", or pressing Return will save the
changes. Answering "n" will leave that file untouched. rpl will
then move on to the remaining target files. Note that you will only
be prompted for files which had a match. If no match is found a
period is printed to give you an indication that rpl is working.
(This is useful when, for instance, you are performing a large
recursive batch replacement on a collection of files.)
Normally, rpl will change the modification time of all files it
processes like any other program. However, you may instruct rpl to
keep the original modification times using the -d (Don't alter
mod-times) option.
You can specify file suffixes to be searched using the -x
option. Any files that do not match the specified suffixes will not
be searched or modified. The -x option may be used more than once
to tell rpl to search files with varying suffixes. For instance,
say you wanted to search all of your ".html", ".htm", and
".php" files you would add " -x'.html' -x'.htm' -x'.php'
" to your command line. rpl would then skip any files that did not
end with these suffixes. This is mainly useful when doing recursive
searching (-R option).
OPTIONS:
-i Ignore case of old_str
rpl will match the old_str in the searched file
regardless of the case. The case of new_str will
not be altered.
-w Whole words (old_str bounded by white space in
file)
rpl will only match old_str if it is bounded by the
start of a line, a space, a tab, or the end of a
line.
-q Quiet mode (no output at all)
Good for shell scripts, etc.
-v Verbose mode (lots of output)
rpl will list the name of each file and directory,
and the line numbers that contain matches.
-R Search directories recursively
rpl will scan every file and every directory recur-
sively. Without this option directories will be
skipped.
-x Specify file suffixes to search. (e.g. ".html",
".c", etc.) May be used multiple times. See above
for details.
-p Prompt for each file
rpl will prompt you before scanning each file. If
you respond 'N' or 'n' rpl will skip that file and
move on to the next file. The default action if you
press enter is to process the file.
-s Simulation mode
rpl will scan all of the files and list the names
of files that it would modify if a replace opera-
tion was executed. If you turn on the verbose (-v)
option as well rpl will list the line numbers where
the string was matched.
-e Honor Escapes
rpl will honor escape sequences in old_string and
new_string. Standard escapes such as "t" (tab),
"n" (newline), "r" (carriage return) are processed,
as well as any octal or hexidecimal ASCII codes. Octal
ASCII codes start with a '' and are comprised of
three digits [0-7] (e.g. ' 15'). Hexidecimal ASCII
codes start with ' x' followed by two characters
[0-f] (e.g. ' x0d'). The 'x' and the [a-f] may be
upper or lowercase. When you use this switch you must
escape all backslash ('') characters with another
backslash (e.g. '').
-f Force mode
rpl will overwrite files even if the owner, group,
or permissions of the new file will not match the
original. Obviously, rpl cannot overwrite files if
the user does not have write permission.
-d Don't change modification times
rpl will process files, but keep their original
modification times.
-t Use $TMPDIR for temporary files
Causes rpl to write temporary files to the direc-
tory specified by the environment variable $TMPDIR
instead of writing the temp files to the original
file dir.
-L Display the software license
This displays the software license that you agree
to by using rpl.
-h Display a brief summary of options
What's New in This Release:
· Fixed a bug that would cause a match to fail if the
preceding character was the same as the first character in the
search string.
· Added support for escape sequence (e.g. "t", "n")
in the search and replace strings.
· Cleaned up code some more. Moved things into a some
functions.
0 comments
Downloadtube.com agrees that pirated software hurts software
developers and does not support such practices. We acknowledge and
agree that software piracy is theft. Using rpl crack,
rpl key generator, rpl keygen, as well as any
pirated rpl serial number/serial numbers and rpl
registration code/codes, warez, keys, torrents, passwords, is illegal
and does not support the future development of rpl.
Downloadtube.com advises that rpl should be only used in
accordance with the rules of intellectual property and the existing
Criminal Code. Downloadtube.com does not allow the inclusion of any
crack, serial or keygen and disclaims any liability for the
inappropriate use of rpl.
Add to
rpl Version History
| Product |
Date Added |
| rpl 1.4.0 |
2008-02-06 05:01:27 |
Related Software
|
|
From category: Markup |
| eArea 1.01 is markup software developed by Oliver Moran. eArea is a simple cross-browser WYSIWYG text editor. It works on Explorer, Firefox/Mozila and Safari/Konqueror. eArea project even wi... |
|
|
From category: Others |
| Domac is a text edit/macro language, similiar to awk,sed, or m4.... |
|
|
From category: Markup |
| DocBook Doclet 1.5 is markup software developed by Michael Fuchs. DocBook Doclet project creates DocBook XML from Java source documentation or HTML files. It is helpful if you want to create refere... |
|
|
From category: Others |
| Recoll is a personal full text search package based on Xapian.... |
|
|
From category: IDEs |
| DB Visual ARCHITECT for NetBeans 4.0 is ides software developed by Visual Paradigm International Ltd.. DB Visual ARCHITECT (DB-VA) offers software developers an excellent solution for database appl... |
|
|
From category: Others |
| aspell-da 1.6.0 is others software developed by Jacob Sparre Andersen. aspell-da is an aspell dictionary for spell-checking Danish texts. aspell-da is based on \"Den store danske ordliste\" (The Co... |
|
|
From category: IDEs |
| EditiX 5.0 is ides software developed by Alexandre Brillant. EditiX is a cross-platform and multi-purpose XML/XSLT editor, which helps Web authors and programmers use XML and XML-related technologi... |
|
|
From category: Others |
| FMPP 0.9.11 is others software developed by Daniel Dekany. FMPP is a general-purpose text file preprocessor tool that uses FreeMarker templates. FMPP project is particularly designed for HTML prepr... |
|
|
From category: Others |
| Evince is a document viewer for multiple document formats like pdf, postscript, and many others.... |
|
|
From category: Others |
| Epsilon 13.00 is others software developed by Steven Doerfler. Epsilon is a multi-platform programmers editor that does syntax highlighting, brace matching, etc. Epsilon has built-in support for Pe... |
|
|
From category: Markup |
| Dexter-XSL is a tool for simplifying XSL production.... |
|
|
From category: Markup |
| File2XLIFF4j 20061005 is markup software developed by Sonny Zubia. File2XLIFF4j is a modular implementation of a tool that converts files to and from the OASIS standard XLIFF. XLIFF means XM... |
|
|
From category: Others |
| Esperantilo 0.86 is others software developed by Artur Trzewik. Esperantilo is a text editor with particular esperanto functions, spell and grammar checking and machine translation to Polish, Germa... |
|
|
From category: Others |
| edival 0.1.7 is others software developed by Michael Edgar. edival is a simple EDI file parser and validator. Current functionality is limited to ANSI X12 formatted data. edival&039;s main... |
|
|
From category: Indexing |
| Auto Directory Index PHP Script 1.5.4 is indexing software developed by Justin Hagstrom. AutoIndex is a PHP script that makes a table that lists the files in a directory, and lets users access the... |
Leave a comment