I have a script that changes the properties of the files for a folder.
Here is the example tree:
dir 1
--file 1
--file 2
--file 3
dir 2
--file 1
--file 2
dir 3
--file 1
--file 2
--file 3
I am running this command on the terminal for which I wan to run the shell script (script.sh) for every directory
find . -type d -exec ./script.sh {}\;
it does not run and errors' this:
find: missing argument to `-exec'
What am I missing here?