mirror of
https://github.com/kevinveenbirkenbach/bulk-string-replacer.git
synced 2024-12-22 16:45:04 +01:00
LICENSE | ||
README.md |
bulk-string-replacer
bulk-string-replacer is a tool designed to traverse directories and perform bulk string replacement in filenames, folder names, and file contents. Whether you want to target hidden items, preview changes before execution, or recursively navigate through folders, this versatile utility has you covered.
Author
Kevin Veen-Birkenbach
- 📧 Email: kevin@veen.world
- 🌍 Website: https://www.veen.world/
Link to Original Conversation
For more context on how this tool was developed, you can view the original conversation here.
Setup and Usage
-
Clone the repository:
git clone https://github.com/kevinveenbirkenbach/bulk-string-replacer.git
-
Navigate to the cloned directory:
cd bulk-string-replacer
-
Run the script with Python:
python replace_string.py [path] [old_string] [new_string] [options]
Options:
--recursive
: Replace in all subdirectories and files.--folder
: Replace in folder names.--files
: Replace in file names.--content
: Replace inside file contents.--preview
: Preview changes without making actual replacements.--verbose
: Verbose mode - view detailed outputs.--hidden
: Target hidden files and folders.
For more detailed options, refer to the inline script help or the aforementioned conversation.
License
This project is licensed under the GNU Affero General Public License v3.0. The full license text is available in the LICENSE
file of this repository.