Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fernandod1/bulk-search-replace-code

Script that will bulk search and replace creating a new file with al pieces of code found between two delimiters in all subfolders files.
https://github.com/fernandod1/bulk-search-replace-code

al-pieces all-pieces bulk-operation bulk-search code code-generation delimiters python python-script python3 replace-in-files replace-text replaceall snippet snippet-generator snippets snipping-tool

Last synced: 15 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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.