replace - A utility program that is used by msql2mysql, but that has more general applicability as well. replace changes strings in place in files or on the standard input. Uses a finite state machine to match longer strings first. Can be used to swap strings.
.SHUSAGE
replace [-?svIV] from to from to ... -- [files]
.TP
or
.TP
replace [-?svIV] from to from to ... < fromfile > tofile
.SHSYNOPSIS
.Breplace
.RB[-?|-I]
.RB[-s]
.RB[-v]
.SHDESCRIPTION
.TP
.BRreplace
.TP
.BR-?|-I
info
.TP
.BR-s
silent
.TP
.BR-v
verbose
.SHEXTRAINFO
.BSpecialcharactersinfromstring:
.TP
\\^
Match start of line.
.TP
\\$
Match end of line.
.TP
\\b
Match space-character, start of line or end of line. For a end \\b the next replace starts locking at the end space-character. A \\b alone in a string matches only a space-character.