moving multiple folders/files in subversion using bash script

Hi, I'm new here an dlearning a lot from this forum. i didnt find any solution for this in the forum.
I have already checked in folders in subversion named
HTT01,... HTT21.. and have files in each folder like below:
HTT01/HTT01_00000.hex
HTT01/HTT01_00000_fb_result.hex
HTT01/HTT01_00000_irq_result.hex

i need to rename them all in the subversion.
as
HTTxx folder and files in each folder like below:
HTTxx/HTTxx_00000.hex
HTTxx/HTTxx_00000_fb_result.hex
HTTxx/HTTxx_00000_irq_result.hex

HTTxx_1 folder and files as below
HTTxx_1/HTTxx_00001.hex
HTTxx_1/HTTxx_00001_fb_result.hex
HTTxx_1/HTTxx_00001_irq_result.hex
like this upto HTTxx_20.. and

i can use 'svn mv HTT01 HTTxx_00000', but it will take lot of time to rename each file and folder in subversion fro all 21 folders.. like this i have to do for many sets.. Is there any script available to do this in automated way..?

thanks in advance! :slight_smile:

i found half the way soluton but i need to alter it full to my requirement,,

for d in HTT??; do echo svn mv $d ${d/TT/TTxx_}; done

this will move the directories to the sam enumber but i want the number to be reduced one..

like HTT01 to HTTxx
HTT02 to HTTxx_1,etc..

  HTT21 to HTTxx_20    

and the internal files also..
how do i do this..?

for ((a=1,b=2; a<=3; a++, b++));
do
svn mv HTT0$b HTTxx_$a;
done

this will do what i want .. only for the first folder i need to do it manually.
for two digit need to use it a nd b from that number..and corresponding folder names. :b:

late response for a question..make the one who ask the question to find the answer..

thanks forum! :slight_smile: