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
Post a Comment