This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import argparse | |
import os | |
import openai | |
from pprint import pprint | |
import os | |
from openai import OpenAI | |
from tqdm import tqdm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' | |
# File Replacement and Backup Script | |
This script is designed to search through files within a specified directory, replace occurrences of a search string with a replacement string, and backup the original files. | |
It will rename every instance of that string, found not only in the files themselves, but also in the filename and directory name. | |
## Features | |
- Searches for files containing a specific string. | |
- Replaces the found string with a new string. |
OlderNewer