I am trying to recurse into folders and then run commands on them, using bash script. Any suggestions?
Have a look at the find command and check the switches -type (use d to specify directory) and -exec (to specify a command to execute).
find
-type
-exec