l would like to rename my directories following a list of new names.
l am wondering hoc can l take advantage of using the following command to rename a set of directories which are in the same principal directory.
find . -type d -name 'thefoldername*' -exec mv {} newfoldername \;
The actual directory names are :
Actual_folder_names=['archery','benchpressing','bikingthroughsnow','blowingoutcandles','bowling','brushingteeth','cleanandjerk','divingcliff','drummingfingers','golfchipping','golfdriving']
change to :
new_folder_name=['Archery' ,'BenchPress' ,'Biking' ,'BlowingCandles' ,'Bowling' ,'BrushingTeeth','CleanAndJerk' ,'Diving' ,'Drumming'
,'GolfSwing1', 'GolfSwing2']
Thank you
brushingteeth
toBrushingTeeth
, but how should it know where to put upper case letters?zip
to iterate over the lists pairwise +os.rename
)?