Created
March 30, 2023 19:38
-
-
Save dentropy/d9a761f05fe32ea9d4ccc0e9946a8f88 to your computer and use it in GitHub Desktop.
This file contains 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
num_lines = 3 | |
import os | |
from glob import glob | |
files = glob("./dentropydaemon-wiki/**", recursive=True) | |
from pprint import pprint | |
for file_name in files: | |
if "md" in file_name and os.path.isfile(file_name): | |
file_contents = open(file_name, 'r').readlines()[3:] | |
new_file = open(file_name, 'w') | |
new_file.write("".join(file_contents)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment