3 ms·
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(
by iudqnolq 4y 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"])