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 R) [-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.8.tar.gz
(15.9 kB
view hashes)
Built Distribution
subprompt-0.0.8-py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for subprompt-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1ec80e090ab0941e57347c1505d55a0addd33f88be00209ef309db8655f13c |
|
MD5 | 8ea6315adc3a980737119bbcc8bd153f |
|
BLAKE2b-256 | 20ed9c08874827b710317729076dde02ec16fc96643cf8939483463ec9ae026a |