Change file names

PHOTO EMBED

Sun Mar 28 2021 11:12:42 GMT+0000 (Coordinated Universal Time)

Saved by @FlorianC #bash

#!/usr/bin/env python3
import sys
import subprocess

with open(sys.argv[1]) as f:
        for line in f:
                old_name = line.strip()
                new_name = old_name.replace("jane","jdoe")
                subprocess.run(["mv",old_name,new_name])
        f.close()
content_copyCOPY