I need to write a script that runs a series of commands in multiple subfolders. The problem is that I dont want to change directory for every folder. So this is why I thought to use a master script to activate the smaller ones.
So, is there a way to command other scripts to open in subdirectories, but in sequential order, without typing in every folder you want it to open from.
I figured if I tell it to run the script eg.sh in every subfolder it would run them simultaneously right?
Sorry if its confusing, I can give an example later if no one understands where im coming from.
Please do post an example. It's not too clear what you mean.
It is possible to write one single script which searches for directories in a directory tree and executes a command within each directory. The unix find command recommended above is likely to feature in the script.
If combined with filename expansion, no.
If combined with a file list that has been word split using standard IFS after command substitution, then yes..