#!/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()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter