Skip to main content

Find and replace all instances of a string with a new string in a directory and all its sub-directories.

Project description

grepshift

grepshift finds and replaces all instances of a string with a new string in a directory and all its sub-directories. The followinmg directories are excluded: .git, .hg, .svn, .vscode, .idea, .metadata, node_modules, .gradle, .m2, .venv, venv, __pycache__.

Usage:
    grepshift [options] <pattern> [<replacement>]

Options:
    -d, --directory=<directory>   Starting directory [default: .]
    -e, --extension=<extension>   Only process file with this extension
    -h, --help                    Show this help screen
    -l, --list                    Just list the files to be changed, no actual changes
    -r, --remove                  Removes the line, that matches pattern, from all files
    -v, --verbose                 Verbose Mode
    --version                     Prints the version

Installation

pip install grepshift

License

grepshift is freeware released under the MIT License.

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

grepshift-1.5.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grepshift-1.5.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file grepshift-1.5.0.tar.gz.

File metadata

  • Download URL: grepshift-1.5.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for grepshift-1.5.0.tar.gz
Algorithm Hash digest
SHA256 0ebfab67cd201fa1a3e6748d8000461796481353cf9f79a7fe967d3014149a7c
MD5 2355add86c839a23ec5acba0fe22b693
BLAKE2b-256 7c02df31c779127a72733479e904ea89b0965d811b9c6a8adce326ed3cec3054

See more details on using hashes here.

File details

Details for the file grepshift-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: grepshift-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.13.9 Darwin/25.1.0

File hashes

Hashes for grepshift-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f61a7a3713713757c0d683b80bdc975bce862d0cbdfbd784eb9cb2517a4be6e2
MD5 f8f8f90b77c1b2cf362d9804419a04c0
BLAKE2b-256 f85b13214bedcde5789e8bb9a2f086f4e131864500a85aa52fcbb5a04b2b2164

See more details on using hashes here.

Supported by

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