|
|
|
|
|
by iudqnolq
1185 days ago
|
|
sh is the secret to transliterating bash to python. It's basically bash with proper loops and variables and string operations. import sh
names = sh.ls("./src")
for name in names:
sh.mv(["./src/" + name, "./dst/" + name + ".out"])
|
|