Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/fernandod1/bulk-search-replace-code
- Owner: fernandod1
- License: other
- Created: 2020-02-03T12:10:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-02T11:53:00.000Z (about 4 years ago)
- Last Synced: 2024-11-12T22:28:12.424Z (3 months ago)
- Topics: 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
- Language: Python
- Homepage: https://www.fernando.info
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 reCUSTOMIZE:
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.