:: DEVELOPER ZONE
The replace utility program changes strings in
place in files or on the standard input. It uses a finite state
machine to match longer strings first. It can be used to swap
strings. For example, the following command swaps
a and b in the given files,
file1 and file2:
shell> replace a b b a -- file1 file2 ...
Use the -- option to indicate where the
string-replacement list ends and the filenames begin.
Any file named on the command line is modified in place, so you may want to make a copy of the original before converting it.
If no files are named on the command line, replace
reads the standard input and writes to the standard output. In this
case, no -- option is needed.
The replace program is used by msql2mysql. See Section 24.1.1, “msql2mysql, Convert mSQL Programs for Use with MySQL”.
replace supports the following options:
-?, -I
Display a help message and exit.
-#
debug_options
Write a debugging log. The
string
often is
debug_options'd:t:o,.
file_name'
-s
Silent mode. Print out less information what the program does.
-v
Verbose mode. Print out more information what the program does.
-V
Display version information and exit.
© 1995-2005 MySQL AB. All rights reserved.

User Comments
Warning: query failed: Unknown column 'user.firstname' in 'field list' in /data0/sites/live/web-main/lib/mysql-cxn.php on line 69
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data0/sites/live/web-main/lib/docbook.php on line 245
Add your own comment.