Substitute Regex in files with prompt confirmation
Project description
subprompt
Interactively change every line matching a regex in multiple files.
Installation
Through PyPI:
python3.9 -m pip install subprompt
Usage
usage: subprompt [-h] (-d | -r SUB) [-n N] REGEX FILES [FILES ...]
Modifies lines matched by a regex interactively
positional arguments:
REGEX
FILES
optional arguments:
-h, --help show this help message and exit
-d delete line
-r SUB replace match with expression
-n N size of lines preview (default=3)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
subprompt-0.0.9.tar.gz
(15.9 kB
view details)
Built Distribution
subprompt-0.0.9-py3-none-any.whl
(16.7 kB
view details)
File details
Details for the file subprompt-0.0.9.tar.gz
.
File metadata
- Download URL: subprompt-0.0.9.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39ea7ad1c3c0c146faa03231aaf984c0362540082d1c5e4a936f5ba3ead49ff8 |
|
MD5 | fff4a20e184756e745d1c361aa2afa3d |
|
BLAKE2b-256 | ac92921b44af1a772e90a999dc015cf20a7beb58d22eb8ea468243cd73e21732 |
File details
Details for the file subprompt-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: subprompt-0.0.9-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a70d6ab4334590214a141cb5efb762aaa9f1367ddd88461178663586f2f6e27 |
|
MD5 | 5a1ce8d265716bbebcce7aca17ce8203 |
|
BLAKE2b-256 | 7b128fa07350398e0c2024fbbee17a7d352095f35480e77a46f0834eb4d29a28 |