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.6.tar.gz
(15.9 kB
view hashes)
Built Distribution
subprompt-0.0.6-py3-none-any.whl
(16.7 kB
view hashes)
Close
Hashes for subprompt-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f82c9747879a1e4920ee632bfc5cacdb92f1e57d7e7bc1cc0dc94d83fb3abb |
|
MD5 | 531244241980f3007d7b5e7f8f12f452 |
|
BLAKE2b-256 | 6d19c49ed4b49fbd31d3d0b1433652ec274d5b056d2f917cc027261a061e1df0 |