bash - Executing all shell scripts inside a directory -


i have directory structure following -

/apple/a/b/test.sh /apple/d/test.sh /apple/g/f/h/test.sh 

basically, there folder apple , there exists shell scripts in subdirectories.

it might not have shell script in each of subdirectory.

how can run scripts there in apple folder without manually having go each sub-folder , executing it?

find apple/ -name "*.sh" -exec {} \; 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -