Skip to main content

rpl

https://github.com/rrthomas/rpl
© 2025 Reuben Thomas rrt@sc3d.org

A search/replace utility.

rpl replaces strings with new strings in multiple text files. See the man page rpl(1) for more information. Install rpl using pip install rpl.

rpl is distributed under the terms of the GNU General Public License; either version 3 of the License, or (at your option), any later version. See the file COPYING for more details.

See rpl --version for a full list of copyright holders.

usage: rpl [-h] [--version] [--encoding ENCODING] [-i] [-m] [-w] [-b] [-q]
           [-v] [-s] [-e] [-F] [--files] [-x GLOB] [-R] [-p] [-f] [-d]
           OLD-TEXT NEW-TEXT [FILE ...]

Search and replace text in files.

positional arguments:
  OLD-TEXT
  NEW-TEXT
  FILE                  `-' or no FILE argument means standard input

options:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  --encoding ENCODING   specify character set encoding
  -i, --ignore-case     search case-insensitively
  -m, --match-case      ignore case when searching, but try to match case of
                        replacement to case of original, either capitalized,
                        all upper-case, or mixed
  -w, --whole-words     whole words (OLD-TEXT matches on word boundaries only)
  -b, --backup          rename original FILE to FILE~ before replacing
  -q, --quiet           quiet mode
  -v, --verbose         verbose mode
  -s, --dry-run         simulation mode
  -e, --escape          expand escapes in OLD-TEXT and NEW-TEXT [deprecated]
  -F, --fixed-strings   treat OLD-TEXT and NEW-TEXT as fixed strings, not
                        regular expressions
  --files               OLD-TEXT and NEW-TEXT are file names to read patterns
                        from
  -x GLOB, --glob GLOB  modify only files matching the given glob (may be
                        given more than once)
  -R, --recursive       search recursively
  -p, --prompt          prompt before modifying each file
  -f, --force           ignore errors when trying to preserve attributes
  -d, --keep-times      keep the modification times on modified files

Metadata

Release files for rpl 1.18.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpl 1.18.1
File Size Uploaded
rpl-1.18.1.tar.gz 26.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpl 1.18.1
File Interpreter ABI Platform
rpl-1.18.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.0 kB

Release files / rpl-1.18.1.tar.gz

Download URL rpl-1.18.1.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16bd0132ff9032155a1cc83e5ddee93dee3fb301f47410030012a06d2223502a
BLAKE2b-256 checksum
How to use checksums
7f1a08162aacb4a35850a9558b0bf3c8fb68f927a0967b7f1a7fc960ea85d8d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / rpl-1.18.1-py3-none-any.whl

Download URL rpl-1.18.1-py3-none-any.whl
Size 21.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
850ddedc3c55dfe3114eb3c70f8b92dfc6c945b294f45edf461d437521ec6150
BLAKE2b-256 checksum
How to use checksums
98eddf42562caf2f1b9a970e0c75d98b5e8d3168323fb54d7bdf78b2d99de11f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.18.1 This release

2 release files

1.18

2 release files

1.17

2 release files

1.16.1

2 release files

1.16

2 release files

1.15.7

2 release files

1.15.6

2 release files

1.15.4

2 release files

1.15.3

2 release files

1.15

2 release files

1.14

2 release files

1.13

2 release files

1.12

2 release files

1.11

2 release files

1.10

2 release files

1.9.2

2 release files

1.9.1

2 release files

1.9

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page