I have multiple files with the first 8 lines being filled with different things, but I'd like to remove them across all files in multiple folders I have.
I've thought about using something like a pattern at first but I thought it would be a better idea to just give it the number of lines to delete since all the files have those first 8 lines.
f = open('SD')
lines = f.readlines()
f.close()
result = []
bool_remover = False
for line in lines:
if line == "Greg*" : bool_remover = True
if not bool_remover : result.append(line)
if line == "***" : bool_remover = False
But I gave up on this idea. Any way to remove a number of lines (at the beginning) of multiple fines at once?