1REPLACE(1)                   MySQL Database System                  REPLACE(1)
2
3
4

NAME

6       replace - a string-replacement utility
7

SYNOPSIS

9       replace arguments
10

DESCRIPTION

12       The replace utility program changes strings in place in files or on the
13       standard input.
14
15       Invoke replace in one of the following ways:
16
17           shell> replace from to [from to] ... -- file_name [file_name] ...
18           shell> replace from to [from to] ... < file_name
19
20       from represents a string to look for and to represents its replacement.
21       There can be one or more pairs of strings.
22
23       Use the -- option to indicate where the string-replacement list ends
24       and the file names begin. In this case, any file named on the command
25       line is modified in place, so you may want to make a copy of the
26       original before converting it.  replace prints a message indicating
27       which of the input files it actually modifies.
28
29       If the -- option is not given, replace reads the standard input and
30       writes to the standard output.
31
32       replace uses a finite state machine to match longer strings first. It
33       can be used to swap strings. For example, the following command swaps a
34       and b in the given files, file1 and file2:
35
36           shell> replace a b b a -- file1 file2 ...
37
38       The replace program is used by msql2mysql. See msql2mysql(1).
39
40       replace supports the following options.
41
42       ·   -?, -I
43
44           Display a help message and exit.
45
46       ·   -#debug_options
47
48           Enable debugging.
49
50       ·   -s
51
52           Silent mode. Print less information what the program does.
53
54       ·   -v
55
56           Verbose mode. Print more information about what the program does.
57
58       ·   -V
59
60           Display version information and exit.
61
63       Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.
64
65       This documentation is free software; you can redistribute it and/or
66       modify it only under the terms of the GNU General Public License as
67       published by the Free Software Foundation; version 2 of the License.
68
69       This documentation is distributed in the hope that it will be useful,
70       but WITHOUT ANY WARRANTY; without even the implied warranty of
71       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
72       General Public License for more details.
73
74       You should have received a copy of the GNU General Public License along
75       with the program; if not, write to the Free Software Foundation, Inc.,
76       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see
77       http://www.gnu.org/licenses/.
78
79

SEE ALSO

81       For more information, please refer to the MySQL Reference Manual, which
82       may already be installed locally and which is also available online at
83       http://dev.mysql.com/doc/.
84

AUTHOR

86       Sun Microsystems, Inc. (http://www.mysql.com/).
87
88
89
90MySQL 5.1                         04/06/2010                        REPLACE(1)
Impressum