Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

subprompt-0.0.9-py3-none-any.whl (16.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page