I have to compare the sizes of some folders to make a% difference between them and depending on the result send an email. I want to make the for
for each SITE folder, the SITE folders are all from a directory, ... / backup / SITE1..2..3. My intention is when SITE1 ends use the same variables for SITE2.
The part of taking folder sizes and extracting the% and sending mail separately for each folder I have already solved, but I would like to simplify the code and for example have a txt file with the folder routes, which read it up to one character and use the variables, when it ends up with the next SITE etc
:SITE1
Carpeta1
Carpeta1.bkp
Carpeta2
Carpeta2.bkp
:SITE2
Carpeta1
Carpeta1.bkp
Carpeta2
Carpeta2.bkp
I want to assign the values of Folder1, ... to variables until I find ":", at that moment execute a command and when I finish I continue reading SITE2 and reassign its variables
Thank you!