OS Manuals

/usr/bin/replace

The MariaDB open source relational database

From mariadb-13.1 13.1.1-r2 (os), captured 2026-11-05 by running replace -? (exit 0). permalink

Also provided by 22 other package versions
/usr/bin/replace from 13.1.1-MariaDB, client 1.4 for Linux (x86_64)
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

This program replaces strings in files or from stdin to stdout.
It accepts a list of from-string/to-string pairs and replaces
each occurrence of a from-string with the corresponding to-string.
The first occurrence of a found string is matched. If there is
more than one possibility for the string to replace, longer
matches are preferred before shorter matches.

A from-string can contain these special characters:
  \^      Match start of line.
  \$      Match end of line.
  \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.

Usage: /usr/bin/replace [-?svIV] from to from to ... -- [files]
or
Usage: /usr/bin/replace [-?svIV] from to from to ... < fromfile > tofile

Options: -? or -I "Info"  -s "silent"      -v "verbose"

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.