REPLACE(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 [file] ...
18          shell> replace from to [from to] ... < file
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 filenames 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          Write a debugging log. The debug_options string often is
49          ´d:t:o,file_name'.
50
51       ·  -s
52
53          Silent mode. Print less information what the program does.
54
55       ·  -v
56
57          Verbose mode. Print more information about what the program does.
58
59       ·  -V
60
61          Display version information and exit.
62
64       Copyright 1997-2007 MySQL AB
65
66       This documentation is NOT distributed under a GPL license. Use of this
67       documentation is subject to the following terms: You may create a
68       printed copy of this documentation solely for your own personal use.
69       Conversion to other formats is allowed as long as the actual content is
70       not altered or edited in any way. You shall not publish or distribute
71       this documentation in any form or on any media, except if you
72       distribute the documentation in a manner similar to how MySQL
73       disseminates it (that is, electronically for download on a Web site
74       with the software) or on a CD-ROM or similar medium, provided however
75       that the documentation is disseminated together with the software on
76       the same medium. Any other use, such as any dissemination of printed
77       copies or use of this documentation, in whole or in part, in another
78       publication, requires the prior written consent from an authorized
79       representative of MySQL AB. MySQL AB reserves any and all rights to
80       this documentation not expressly granted above.
81
82       Please email <docs@mysql.com> for more information.
83

SEE ALSO

85       For more information, please refer to the MySQL Reference Manual, which
86       may already be installed locally and which is also available online at
87       http://dev.mysql.com/doc/.
88

AUTHOR

90       MySQL AB (http://www.mysql.com/).  This software comes with no
91       warranty.
92
93
94
95MySQL 5.0                         07/04/2007                        REPLACE(1)
Impressum