Python script. import os [os.rename(f, f.replace('', 'xyz_')) for f in os.listdir('.') if not f.startswith('.')]