Hello you wonderful people,I have a little problem creating a Bash Script.I have 7000 image files (dicoms). These files belong together and should be in order in ONE directory. However, the program that is creating these files appears to open a new subfolder every 2048 files and starts over with new. I would like to change the images' names in these subfolders.So lets say I have one folder with 2048 images (named IM_0001 to IM_2048). I have one subsequent folder with 900 images. (named, again IM_0001 to IM_0900).I would like to:For loop through all files in the second folder.mv IM_{number} IM_{number+2048} (so IM_0001 becomes IM_2049 and so on)That is, basically all. Is there a simple, efficient way to do this (or something similar)? I am, unfortunately, not very familiar with the Bash syntax, so any input would be greatly appreciated. The Names should be similar! So simply renaming all items in the second folder into  (for example) JM_0001 to JM_0900 will cause my import program (I need to use that particular tool, unfortunately) to screw up.Thank you!
Renaming multiple Files, Bash Script, preferably with an Addition
bash;rename;mv
If there is no extention in files name: for i in secondfolder/IM_* ; do mv $i ${i%_[0-9]*}_$[10#${i##*_}+2048] ; done