RPL(1) | User Commands | RPL(1) |
rpl - replace strings in files
usage: rpl [-h] [--version] [--encoding ENCODING] [-i] [-m] [-w] [-b] [-q] [-v] [-s] [-e] [-F] [--files] [--noglob] [-p] [-f] [-d] OLD-TEXT NEW-TEXT FILE [FILE ...]
Search and replace text in files.
Text matching the pattern OLD-TEXT is replaced by NEW-TEXT in each FILE.
Filenames may include glob patterns (these must be quoted to avoid being interpreted by the shell), and in particular may use ‘**’ to match all files and zero or more directories and subdirectories. Tilde and environment variable expansion is also performed.
Replace all occurrences of the word ‘F’ with ‘A’ in all files with extension .txt under the grades/ directory:
rpl -w F A 'grades/**/*.txt'
Written by Göran Weinholt and Reuben Thomas.
Copyright © 2004-2005 Göran Weinholt
<weinholt@debian.org>
Copyright © 2004 Christian Häggström <chm@c00.info>
Copyright © 2016 Kevin Coyner <kcoyner@debian.org>
Copyright © 2017 Jochen Kupperschmidt <homework@nwsnet.de>
Copyright © 2018-2020 Reuben Thomas <rrt@sc3d.org>
rpl comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of rpl under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING.
This program was written for Debian as a free replacement for the non-free rpl program by Joe Laffey.
November 2020 | rpl 1.8.0 |