I have a few files with this format:
17-07-39_03-05-2022_Testing.txt
16-07-34_03-05-2022_Testing.png
"Testing" is the name of the system.
I am trying to use subprocess
to delete all files that have "Testing" in them at the end.
pc_user = subprocess.run("whoami", capture_output=True, shell=False).stdout.decode().strip("\n")
name, user = pc_user.split("\\")
path = f"C:/Users/Testing/PycharmProjects/pythonProject/Project/"
subprocess.run(f"rm {path}*{name}.*")