Giter Site home page Giter Site logo

djstompzone / xgrep Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7 KB

Recursively searches a directory for filenames and content that match a specific pattern and records the suggested changes. Specifically designed for updating "twitter" to "x"

License: MIT License

Python 100.00%

xgrep's Introduction

xGrep: Filename and Content Change Stager

xGrep is a utility tool that recursively searches through directories, identifying filenames and content that match a specific pattern. It was designed specifically for the use case of updating references from "twitter" to "x", but it's versatile enough for other pattern replacements.

Summary

xGrep allows you to navigate through your project and pinpoint specific instances where changes are required, both in filenames and their content. It's perfect for large-scale refactoring or updates where manual checks can become cumbersome.

Installation

  1. Clone the Repository:

    git clone https://github.com/DJStompZone/xGrep.git
    cd xGrep
  2. Install Dependencies: Ensure you have pip installed. Then:

    pip install -r requirements.txt

Usage

Navigate to the directory of interest and run the xGrep script:

python3 xgrep.py

After execution, a detected_changes.json file will be generated, detailing the suggested changes.

License Released under the MIT License. See LICENSE for more information.

Author

DJ @ DeepAI

xgrep's People

Contributors

djstompzone avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.