Skip to content

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

License

Notifications You must be signed in to change notification settings

scholnicks/grepshift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages