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.py [-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 R 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.7.tar.gz
(15.9 kB
view hashes)
Built Distribution
subprompt-0.0.7-py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for subprompt-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172704d9221192788911756a6176db68c0af021c9b7967e1c36d5b3585ab9b75 |
|
MD5 | c7212d6b77ed7bc3207ba0bf389206de |
|
BLAKE2b-256 | cde6eaa8ff7323c7df8a496ab30cfd38dbcaff37a8456e1f28e55ba67200e9a4 |