Python script. import os [os.rename(f, f.replace('', 'xyz_')) for f in os.listdir('.') if not f.startswith('.')]
from glob import glob import os pre = "xyz_" [os.rename(f, "{}{}".format(pre, f)) for f in glob("*.html")]