Okay the title is not very good so i will explain(sorry for my english i am from a galaxy far far away
)
Let's suppose i have a dir named MainBla that contains four dirs named bla1 bla2 bla3 bla4 and each one of these dirs has a file(i believe it's the same procedure if each one of the bla dirs contains other dirs that contain files etc).
I am writing a script which takes optional parameters:
$1: the path that MainBla is found
$2: one of the bla folders in order to do whatever my script does with the file that bla contains.
So one call might be ./script.sh /..../MainBla bla1.
Let's suppose now that i want to change that into
./script /.../MainBla bla1-bla3...in that case $2 argument is the range of dirs i want to work with(bla1,bla2,bla3 but not bla4).how can i make the script change from bla1 to bla2 and then to bla3?
(this can be expanded for random number of dirs)
again excuse me for my poor english.if you have any questions please ask me.
Thank you