Skip to content

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.