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
# Description: | |
# A script to remove files with specific patterns in a target directory. | |
# | |
# Usage: | |
# 1. Change line 10-11 properly according to the instruction beside them. | |
# 2. Run the script in PowerShell. | |
# Tips: | |
# - Change "$false" to "$true" in line 6 to show the files to be deleted. | |
# This won't actually delete them. | |
# - Use "*" in pattern strings to match any text. |
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
""" | |
# Find Keywords | |
Find keywords in a text file. | |
The keywords are specificated by another text file. | |
## Arguments | |
positional arguments: | |
file File to be searched for keywords. |
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
""" | |
Json file access API. | |
""" | |
from os.path import abspath | |
from pathlib import PurePath | |
from json import loads, dumps | |
class JsonFile: |