I'm very new to Bash scripts and would like to test it out on the following problem I have. I currently have a lot of files in a directory in the form
V3_August_'day'_0_'simulations'.pickle
where 'day' and 'simulations' represent variables that change for different files. I would like to convert these into the form
V3_2012_8_'day+1'_0_'simulations'.pickle
What would a script that iterates through these files, renaming them as required be?
V3_August_1_0_2000.pickleorV3_August_5_0_400.pickletoV3_2012_8_2_0_2000.pickleandV3_2012_8_6_0_400.pickle