Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

AltStyle によって変換されたページ (->オリジナル) /