2022-11-15 18:47:35 +01:00
2022-11-15 18:47:35 +01:00
2022-11-15 18:47:35 +01:00
2022-11-11 23:11:53 +01:00
2022-11-11 23:07:41 +01:00
2022-11-11 23:07:41 +01:00
2022-11-15 18:47:35 +01:00
2022-11-15 18:47:35 +01:00

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)
Description
Substitute Regex in files with prompt confirmation
https://pypi.org/project/subprompt/
Readme 374 KiB
2022-11-11 17:13:36 -05:00
Languages
Python 96.8%
Makefile 3.2%