Line 7, are you assigning the string to that variable or did you forget somehow to insert a prompt before the string?
I also think we should supply the log path from the commandline than just prompting the users. I think it would be better for the audience hat will use this script.
You are opening files everywhere, even though with different flags but it looks messy to me. I knoow quick dirty scripts don't have to be perfect but the risks of doing something wrong with my logs and i lose them accidentally.
Is that NOP a place holder in this instance or is it there for some other reason?