Skip to content

Script that will bulk search and replace creating a new file with al pieces of code found between two delimiters in all subfolders files.

License

Notifications You must be signed in to change notification settings

fernandod1/Bulk-search-replace-code

Repository files navigation

Bulk read, copy snippets of code and create new files

DESCRIPTION:

This python script does bulk search, copy and create all pieces of code located inside /instructions/ ascii files and between ``` tags. Then, creates new snippets files inside "lab-activities" or "practice-exercises" for each learning module. File name of snippet will be "title of module_snippets.txt".

REQUIREMENTS:

  • Python v3
  • Python modules: sys, os and re

CUSTOMIZE:

You can customize script, just have to modify delimiters tags, , location of folder with code files to scan (actually /instructions/), and location of where to save new snippets files with extracted code (actually "lab-activities" or "practice-exercises").

COLLABORATIONS:

Collaborations to improve script are always welcome.

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy