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.1.tar.gz (3.2 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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: grepshift-1.5.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

File hashes

Hashes for grepshift-1.5.1.tar.gz
Algorithm Hash digest
SHA256 00e9d975fe60d1e3dcd81c465303a4839cf5e0f06a0a7ea7e5cf2ae6730ce4dc
MD5 1d88a77cfd03e1ab25055eec4172a96b
BLAKE2b-256 abdb1dcefbf89e9fc65686c543b2933e1be4c5153f4b8eb323384339d76495db

See more details on using hashes here.

File details

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

File metadata

  • Download URL: grepshift-1.5.1-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.14.2 Darwin/25.2.0

File hashes

Hashes for grepshift-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99678f0b2ab07e6463ba6d995f67cf76f32da63101e0fd92ece0863c0af9689e
MD5 5b073a18bccb7314a487e933bf70d322
BLAKE2b-256 da37516bbcbccd51b8c7992f611de5fb0efe99fe8aaee51e6c27e9188f3915aa

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